diff --git a/docs/Upload_EPUBs_to_CrossPoint.macro b/docs/Upload_EPUBs_to_CrossPoint.macro deleted file mode 100644 index 16e2c529..00000000 --- a/docs/Upload_EPUBs_to_CrossPoint.macro +++ /dev/null @@ -1 +0,0 @@ -{"globalVariables":[],"macro":{"disabledTimestamp":0,"exportedActionBlocks":[],"forceEvenIfNotEnabledTimestamp":0,"isActionBlock":false,"isExtra":false,"isFavourite":false,"lastEditedTimestamp":1767287000000,"localVariables":[{"dictionary":{"entries":[],"isArray":false,"variableType":4,"type":"Dictionary"},"isActionBlockWorkingVar":true,"isLocalVar":true,"isSecure":false,"m_booleanValue":false,"m_decimalValue":0.0,"m_intValue":0,"m_name":"reader_ip","m_stringValue":"","m_type":2,"supportsInput":false,"supportsOutput":true},{"dictionary":{"entries":[],"isArray":false,"variableType":4,"type":"Dictionary"},"isActionBlockWorkingVar":true,"isLocalVar":true,"isSecure":false,"m_booleanValue":false,"m_decimalValue":0.0,"m_intValue":0,"m_name":"source_dir","m_stringValue":"","m_type":2,"supportsInput":false,"supportsOutput":true},{"dictionary":{"entries":[],"isArray":false,"variableType":4,"type":"Dictionary"},"isActionBlockWorkingVar":true,"isLocalVar":true,"isSecure":false,"m_booleanValue":false,"m_decimalValue":0.0,"m_intValue":0,"m_name":"target_dir","m_stringValue":"","m_type":2,"supportsInput":false,"supportsOutput":true},{"dictionary":{"entries":[],"isArray":false,"variableType":4,"type":"Dictionary"},"isActionBlockWorkingVar":true,"isLocalVar":true,"isSecure":false,"m_booleanValue":false,"m_decimalValue":0.0,"m_intValue":0,"m_name":"upload_count","m_stringValue":"","m_type":1,"supportsInput":false,"supportsOutput":true},{"dictionary":{"entries":[],"isArray":false,"variableType":4,"type":"Dictionary"},"isActionBlockWorkingVar":false,"isLocalVar":true,"isSecure":false,"m_booleanValue":false,"m_decimalValue":0.0,"m_intValue":0,"m_name":"epub_files","m_stringValue":"","m_type":4,"supportsInput":false,"supportsOutput":true},{"dictionary":{"entries":[],"isArray":false,"variableType":4,"type":"Dictionary"},"isActionBlockWorkingVar":true,"isLocalVar":true,"isSecure":false,"m_booleanValue":false,"m_decimalValue":0.0,"m_intValue":0,"m_name":"current_file","m_stringValue":"","m_type":2,"supportsInput":false,"supportsOutput":true},{"dictionary":{"entries":[],"isArray":false,"variableType":4,"type":"Dictionary"},"isActionBlockWorkingVar":true,"isLocalVar":true,"isSecure":false,"m_booleanValue":false,"m_decimalValue":0.0,"m_intValue":0,"m_name":"filename","m_stringValue":"","m_type":2,"supportsInput":false,"supportsOutput":true},{"dictionary":{"entries":[],"isArray":false,"variableType":4,"type":"Dictionary"},"isActionBlockWorkingVar":true,"isLocalVar":true,"isSecure":false,"m_booleanValue":false,"m_decimalValue":0.0,"m_intValue":0,"m_name":"file_list","m_stringValue":"","m_type":2,"supportsInput":false,"supportsOutput":true}],"localVarsAlphabetical":true,"m_GUID":-6743406536052058632,"m_actionList":[{"booleanDictionaryKeys":{"keys":[]},"dictionaryKeys":[],"dictionaryOrArrayType":-1,"existingManualKeyType":0,"m_booleanInvert":false,"m_darkMode":-1,"m_doubleRandomMax":0.0,"m_doubleRandomMin":0.0,"m_falseLabel":"False","m_intExpression":false,"m_intRandom":false,"m_intRandomMax":0,"m_intRandomMin":0,"m_intValueDecrement":false,"m_intValueIncrement":false,"m_newBooleanValue":false,"m_newDoubleValue":0.0,"m_newIntValue":0,"m_newStringValue":"192.168.4.1","m_trueLabel":"True","m_userPrompt":false,"m_userPromptEmptyAtStart":false,"m_userPromptPassword":false,"m_userPromptShowCancel":true,"m_userPromptStopAfterCancel":true,"m_variable":{"dictionary":{"entries":[],"isArray":false,"variableType":4,"type":"Dictionary"},"isActionBlockWorkingVar":true,"isLocalVar":true,"isSecure":false,"m_booleanValue":false,"m_decimalValue":0.0,"m_intValue":0,"m_name":"reader_ip","m_stringValue":"","m_type":2,"supportsInput":false,"supportsOutput":true},"disableLogging":false,"m_SIGUID":-8462510831770928567,"m_classType":"SetVariableAction","m_constraintList":[],"m_isDisabled":false,"m_isOrCondition":false},{"booleanDictionaryKeys":{"keys":[]},"dictionaryKeys":[],"dictionaryOrArrayType":-1,"existingManualKeyType":0,"m_booleanInvert":false,"m_darkMode":-1,"m_doubleRandomMax":0.0,"m_doubleRandomMin":0.0,"m_falseLabel":"False","m_intExpression":false,"m_intRandom":false,"m_intRandomMax":0,"m_intRandomMin":0,"m_intValueDecrement":false,"m_intValueIncrement":false,"m_newBooleanValue":false,"m_newDoubleValue":0.0,"m_newIntValue":0,"m_newStringValue":"/storage/emulated/0/Documents/ereader","m_trueLabel":"True","m_userPrompt":false,"m_userPromptEmptyAtStart":false,"m_userPromptPassword":false,"m_userPromptShowCancel":true,"m_userPromptStopAfterCancel":true,"m_variable":{"dictionary":{"entries":[],"isArray":false,"variableType":4,"type":"Dictionary"},"isActionBlockWorkingVar":true,"isLocalVar":true,"isSecure":false,"m_booleanValue":false,"m_decimalValue":0.0,"m_intValue":0,"m_name":"source_dir","m_stringValue":"","m_type":2,"supportsInput":false,"supportsOutput":true},"disableLogging":false,"m_SIGUID":-8881672898422720773,"m_classType":"SetVariableAction","m_constraintList":[],"m_isDisabled":false,"m_isOrCondition":false},{"booleanDictionaryKeys":{"keys":[]},"dictionaryKeys":[],"dictionaryOrArrayType":-1,"existingManualKeyType":0,"m_booleanInvert":false,"m_darkMode":-1,"m_doubleRandomMax":0.0,"m_doubleRandomMin":0.0,"m_falseLabel":"False","m_intExpression":false,"m_intRandom":false,"m_intRandomMax":0,"m_intRandomMin":0,"m_intValueDecrement":false,"m_intValueIncrement":false,"m_newBooleanValue":false,"m_newDoubleValue":0.0,"m_newIntValue":0,"m_newStringValue":"/books","m_trueLabel":"True","m_userPrompt":false,"m_userPromptEmptyAtStart":false,"m_userPromptPassword":false,"m_userPromptShowCancel":true,"m_userPromptStopAfterCancel":true,"m_variable":{"dictionary":{"entries":[],"isArray":false,"variableType":4,"type":"Dictionary"},"isActionBlockWorkingVar":true,"isLocalVar":true,"isSecure":false,"m_booleanValue":false,"m_decimalValue":0.0,"m_intValue":0,"m_name":"target_dir","m_stringValue":"","m_type":2,"supportsInput":false,"supportsOutput":true},"disableLogging":false,"m_SIGUID":-6845762134556002186,"m_classType":"SetVariableAction","m_constraintList":[],"m_isDisabled":false,"m_isOrCondition":false},{"booleanDictionaryKeys":{"keys":[]},"dictionaryKeys":[],"dictionaryOrArrayType":-1,"existingManualKeyType":0,"m_booleanInvert":false,"m_darkMode":-1,"m_doubleRandomMax":0.0,"m_doubleRandomMin":0.0,"m_falseLabel":"False","m_intExpression":false,"m_intRandom":false,"m_intRandomMax":0,"m_intRandomMin":0,"m_intValueDecrement":false,"m_intValueIncrement":false,"m_newBooleanValue":false,"m_newDoubleValue":0.0,"m_newIntValue":0,"m_trueLabel":"True","m_userPrompt":false,"m_userPromptEmptyAtStart":false,"m_userPromptPassword":false,"m_userPromptShowCancel":true,"m_userPromptStopAfterCancel":true,"m_variable":{"dictionary":{"entries":[],"isArray":false,"variableType":4,"type":"Dictionary"},"isActionBlockWorkingVar":true,"isLocalVar":true,"isSecure":false,"m_booleanValue":false,"m_decimalValue":0.0,"m_intValue":0,"m_name":"upload_count","m_stringValue":"","m_type":1,"supportsInput":false,"supportsOutput":true},"disableLogging":false,"m_SIGUID":-8185353260764052907,"m_classType":"SetVariableAction","m_constraintList":[],"m_isDisabled":false,"m_isOrCondition":false},{"fileExtensions":[],"fileOption":5,"filePattern":"*.epub","fromPath":"{lv=source_dir}","listFilesVariableName":"epub_files","option":4,"waitToComplete":true,"disableLogging":false,"m_SIGUID":-5202805459024432846,"m_classType":"FileOperationAllFilesAction","m_constraintList":[],"m_isDisabled":false,"m_isOrCondition":false},{"forEachLoopVariableName":"current_file","forEachSourceArray":"epub_files","forEachLimit":0,"m_actionList":[{"manipulationType":5,"sourceString":"{lv=current_file}","m_variable":{"dictionary":{"entries":[],"isArray":false,"variableType":4,"type":"Dictionary"},"isActionBlockWorkingVar":true,"isLocalVar":true,"isSecure":false,"m_booleanValue":false,"m_decimalValue":0.0,"m_intValue":0,"m_name":"filename","m_stringValue":"","m_type":2,"supportsInput":false,"supportsOutput":true},"disableLogging":false,"m_SIGUID":-7123456789012345678,"m_classType":"StringManipulationAction","m_constraintList":[],"m_isDisabled":false,"m_isOrCondition":false},{"httpMethod":0,"url":"http://{lv=reader_ip}/api/files?path={lv=target_dir}","timeout":10000,"outputVariable":"file_list","continueOnError":true,"disableLogging":false,"m_SIGUID":-8234567890123456789,"m_classType":"HttpRequestAction","m_constraintList":[],"m_isDisabled":false,"m_isOrCondition":false},{"m_constraint":{"lhs_variable":"file_list","lhs_variableType":2,"lhs_value":"","rhs_value":"\"{lv=filename}\"","constraintType":2,"m_not":true,"m_isOrCondition":false},"m_actionList":[{"httpMethod":1,"url":"http://{lv=reader_ip}/upload?path={lv=target_dir}","contentType":"multipart/form-data","fileToUpload":"{lv=current_file}","fileFieldName":"file","timeout":60000,"continueOnError":true,"disableLogging":false,"m_SIGUID":-9345678901234567890,"m_classType":"HttpRequestAction","m_constraintList":[],"m_isDisabled":false,"m_isOrCondition":false},{"message":"✓ {lv=filename}","duration":0,"disableLogging":false,"m_SIGUID":-1234567890123456780,"m_classType":"ToastAction","m_constraintList":[],"m_isDisabled":false,"m_isOrCondition":false},{"booleanDictionaryKeys":{"keys":[]},"dictionaryKeys":[],"dictionaryOrArrayType":-1,"existingManualKeyType":0,"m_booleanInvert":false,"m_darkMode":-1,"m_doubleRandomMax":0.0,"m_doubleRandomMin":0.0,"m_falseLabel":"False","m_intExpression":true,"m_intRandom":false,"m_intRandomMax":0,"m_intRandomMin":0,"m_intValueDecrement":false,"m_intValueIncrement":false,"m_newBooleanValue":false,"m_newDoubleValue":0.0,"m_newIntValue":0,"m_newStringValue":"{lv=upload_count} + 1","m_trueLabel":"True","m_userPrompt":false,"m_userPromptEmptyAtStart":false,"m_userPromptPassword":false,"m_userPromptShowCancel":true,"m_userPromptStopAfterCancel":true,"m_variable":{"dictionary":{"entries":[],"isArray":false,"variableType":4,"type":"Dictionary"},"isActionBlockWorkingVar":true,"isLocalVar":true,"isSecure":false,"m_booleanValue":false,"m_decimalValue":0.0,"m_intValue":0,"m_name":"upload_count","m_stringValue":"","m_type":1,"supportsInput":false,"supportsOutput":true},"disableLogging":false,"m_SIGUID":-2345678901234567891,"m_classType":"SetVariableAction","m_constraintList":[],"m_isDisabled":false,"m_isOrCondition":false}],"disableLogging":false,"m_SIGUID":-3456789012345678902,"m_classType":"IfConditionAction","m_constraintList":[],"m_isDisabled":false,"m_isOrCondition":false}],"disableLogging":false,"m_SIGUID":-4567890123456789013,"m_classType":"ForEachLoopAction","m_constraintList":[],"m_isDisabled":false,"m_isOrCondition":false},{"title":"Upload Complete","text":"Uploaded {lv=upload_count} file(s)","priority":0,"disableLogging":false,"m_SIGUID":-5678901234567890124,"m_classType":"NotificationAction","m_constraintList":[],"m_isDisabled":false,"m_isOrCondition":false}],"m_category":"File Management","m_constraintList":[],"m_description":"Upload EPUB files to CrossPoint Reader via WiFi","m_descriptionOpen":false,"m_enabled":true,"m_excludeLog":false,"m_headingColor":0,"m_isOrCondition":false,"m_name":"Upload EPUBs to CrossPoint","m_triggerList":[]},"macroExportVersion":1} diff --git a/docs/Upload_EPUBs_to_CrossPoint.tsk.xml b/docs/Upload_EPUBs_to_CrossPoint.tsk.xml deleted file mode 100644 index 0b99f6e8..00000000 --- a/docs/Upload_EPUBs_to_CrossPoint.tsk.xml +++ /dev/null @@ -1,174 +0,0 @@ - - - 1767235270638 - 1767236697913 - 6 - Upload EPUBs to CrossPoint - - 398 - CrossPoint-Reader - - - 547 - %READER_IP - 192.168.4.1 - - - - - - - - 37 - - - %file_list - 13 - "%filename" - - - - - 339 - false - - - %epub_file:file - java.lang.String - - - - - - - http://%READER_IP/upload?path=%TARGET_DIR - - - - - %upload_response - - - - - 548 - ✓ %filename - - - - 43 - - - 40 - - - 523 - Upload Complete - Processed %EPUB_FILES(#) files - - - - - - - - - - - - - - 30 - - - - - - - - 547 - %SOURCE_DIR - /storage/emulated/0/Documents/ereader - - - - - - - - 547 - %TARGET_DIR - /books - - - - - - - - 412 - %SOURCE_DIR - *.epub - - - - %EPUB_FILES - - - - 39 - %epub_file - %EPUB_FILES() - - - - 590 - %epub_file - / - - - - - 547 - %filename - %epub_file(#) - - - - - - - - 339 - false - - - <StringArray sr=""><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0>%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</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1>%http_file_output -File Output -Will always contain the file's full path even if you specified a directory as the File to save.</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2>%http_response_code -Response Code -The HTTP Code the server responded</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3>%http_headers() -Response Headers -The HTTP Headers the server sent in the response. Each header is in the 'key:value' format</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4>%http_response_length -Response Length -The size of the response in bytes</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4></StringArray> - [Ljava.lang.String; - - - - - - - http://%READER_IP/api/files?path=%TARGET_DIR - - - - - %file_list - - - - - diff --git a/docs/test.sh b/docs/test.sh deleted file mode 100644 index 269dd19c..00000000 --- a/docs/test.sh +++ /dev/null @@ -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 - \ No newline at end of file