chore: Remove obsolete documentation and test scripts for EPUB upload functionality

This commit is contained in:
altsysrq 2026-01-04 17:18:33 -06:00
parent 90e20b49b7
commit b2e9e91fe4
3 changed files with 0 additions and 185 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,174 +0,0 @@
<TaskerData sr="" dvi="1" tv="6.5.11">
<Task sr="task6">
<cdate>1767235270638</cdate>
<edate>1767236697913</edate>
<id>6</id>
<nme>Upload EPUBs to CrossPoint</nme>
<Action sr="act0" ve="7">
<code>398</code>
<Str sr="arg0" ve="3">CrossPoint-Reader</Str>
</Action>
<Action sr="act1" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%READER_IP</Str>
<Str sr="arg1" ve="3">192.168.4.1</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
<Int sr="arg6" val="1"/>
</Action>
<Action sr="act10" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%file_list</lhs>
<op>13</op>
<rhs>"%filename"</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act11" ve="7">
<code>339</code>
<se>false</se>
<Bundle sr="arg0">
<Vals sr="val">
<file>%epub_file:file</file>
<file-type>java.lang.String</file-type>
</Vals>
</Bundle>
<Int sr="arg1" val="1"/>
<Int sr="arg10" val="0"/>
<Int sr="arg11" val="0"/>
<Int sr="arg12" val="1"/>
<Str sr="arg2" ve="3">http://%READER_IP/upload?path=%TARGET_DIR</Str>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3">%upload_response</Str>
<Int sr="arg8" val="60"/>
<Int sr="arg9" val="0"/>
</Action>
<Action sr="act12" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">✓ %filename</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act13" ve="7">
<code>43</code>
</Action>
<Action sr="act14" ve="7">
<code>40</code>
</Action>
<Action sr="act15" ve="7">
<code>523</code>
<Str sr="arg0" ve="3">Upload Complete</Str>
<Str sr="arg1" ve="3">Processed %EPUB_FILES(#) files</Str>
<Str sr="arg10" ve="3"/>
<Str sr="arg11" ve="3"/>
<Str sr="arg12" ve="3"/>
<Img sr="arg2" ve="2"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
<Int sr="arg8" val="0"/>
<Str sr="arg9" ve="3"/>
</Action>
<Action sr="act2" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="5"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act3" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%SOURCE_DIR</Str>
<Str sr="arg1" ve="3">/storage/emulated/0/Documents/ereader</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
<Int sr="arg6" val="1"/>
</Action>
<Action sr="act4" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%TARGET_DIR</Str>
<Str sr="arg1" ve="3">/books</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
<Int sr="arg6" val="1"/>
</Action>
<Action sr="act5" ve="7">
<code>412</code>
<Str sr="arg0" ve="3">%SOURCE_DIR</Str>
<Str sr="arg1" ve="3">*.epub</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3">%EPUB_FILES</Str>
<Int sr="arg6" val="1"/>
</Action>
<Action sr="act6" ve="7">
<code>39</code>
<Str sr="arg0" ve="3">%epub_file</Str>
<Str sr="arg1" ve="3">%EPUB_FILES()</Str>
<Int sr="arg2" val="1"/>
</Action>
<Action sr="act7" ve="7">
<code>590</code>
<Str sr="arg0" ve="3">%epub_file</Str>
<Str sr="arg1" ve="3">/</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act8" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%filename</Str>
<Str sr="arg1" ve="3">%epub_file(#)</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
<Int sr="arg6" val="1"/>
</Action>
<Action sr="act9" ve="7">
<code>339</code>
<se>false</se>
<Bundle sr="arg0">
<Vals sr="val">
<net.dinglisch.android.tasker.RELEVANT_VARIABLES>&lt;StringArray sr=""&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;%http_cookies
Cookies
The cookies the server sent in the response in the Cookie:COOKIE_VALUE format. You can use this directly in the 'Headers' field of the HTTP Request action&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;%http_file_output
File Output
Will always contain the file's full path even if you specified a directory as the File to save.&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2&gt;%http_response_code
Response Code
The HTTP Code the server responded&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3&gt;%http_headers()
Response Headers
The HTTP Headers the server sent in the response. Each header is in the 'key:value' format&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4&gt;%http_response_length
Response Length
The size of the response in bytes&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4&gt;&lt;/StringArray&gt;</net.dinglisch.android.tasker.RELEVANT_VARIABLES>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
</Vals>
</Bundle>
<Int sr="arg1" val="0"/>
<Int sr="arg10" val="0"/>
<Int sr="arg11" val="0"/>
<Int sr="arg12" val="1"/>
<Str sr="arg2" ve="3">http://%READER_IP/api/files?path=%TARGET_DIR</Str>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3">%file_list</Str>
<Int sr="arg8" val="10"/>
<Int sr="arg9" val="0"/>
</Action>
</Task>
</TaskerData>

View File

@ -1,10 +0,0 @@
# Test 1: Check if curl exists
which curl
echo "---"
# Test 2: Try simple HTTP request
curl -v "http://192.168.4.1/" 2>&1
echo "---"
# Test 3: Try file upload with simple filename (no spaces)
echo "test" > /sdcard/test.txt
curl -v -X POST -F "file=@/sdcard/test.txt" "http://192.168.4.1/upload?path=/" 2>&1