AutoTools Create a Read Later list

Learn how to create and update a database of items to read later and show them in a dialog

  1. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,421
    Likes Received:
    792
    joaomgcd submitted a new AutoApps project:

    Create a Read Later list - Learn how to create and update a database of items to read later and show them in a dialog

    Read more about this project...
     
    Matthias and JuanR like this.
  2. Elizabeth Ellis

    Elizabeth Ellis Member

    Joined:
    Nov 3, 2016
    Messages:
    34
    Likes Received:
    5
    I set up the task, went through it a couple times to be sure I followed the directions, and then I got a notification about an error. I don't know if it's my error, but since it gave me the option to "email the developer with an error", I thought I'd put it here.
    com.joaomgcd.autotools version 1.0

    OS Build MMB29K.N920VVRU3BPJ3
    OS Code 23
    Device SM-N920V
    Manufacturer samsung
    Product nobleltevzw

    org.a.b: A JSONArray text must start with '[' at 1 [character 2 line 1]
    at org.a.e.a(SourceFile:433)
    at org.a.a.<init>(SourceFile:104)
    at org.a.a.<init>(SourceFile:143)
    at com.joaomgcd.autotools.intent.IntentJson.b(SourceFile:498)
    at com.joaomgcd.autotools.intent.IntentJson.fire(SourceFile:430)
    at com.joaomgcd.common.tasker.IntentTaskerActionPlugin.fireBase(SourceFile:109)
    at com.joaomgcd.common.tasker.s.a(SourceFile:123)
    at com.joaomgcd.common.tasker.s$2.run(SourceFile:83)

    Not a big deal if it doesn't work, but would be cool if it did. no rush.
    ------------------------
    <--This is what it said on my phone-->
    00.12.48/ActionArgBundle key: SortArrayKey: replace <null> String value with null
    00.12.48/ActionArgBundle key: JsonRootVariable: replace <null> String value with null
    00.12.48/ActionArgBundle key: SortArrayObjectKey: replace <null> String value with null
    00.12.48/ActionArgBundle key: MatchField: replace <null> String value with null
    00.12.48/ActionArgBundle key: MatchValue: replace <null> String value with null
    00.12.48/ActionArgBundle key: VariableName: replace <null> String value with null
    00.12.48/ActionArgBundle key: MaxResults: replace <null> String value with null
    00.12.48/ActionArgBundle key: Max: replace <null> String value with null
    00.12.48/ActionArgBundle key: Min: replace <null> String value with null
    00.12.48/ActionArgBundle key: Sum: replace <null> String value with null
    00.12.48/ActionArgBundle key: Query: replace <null> String value with null
    00.12.48/ActionArgBundle key: InputFormat: replace <null> String value with null
    00.12.48/ActionArgBundle key: JoinOutputArray: replace <null> String value with null
    00.12.48/ActionArgBundle key: Average: replace <null> String value with null
    00.12.48/Variables doreplresult: |%ReadLater| -> |%ReadLater|
    00.12.48/E FIRE PLUGIN: AutoTools Json Read / com.twofortyfouram.locale.intent.action.FIRE_SETTING: 29 bundle keys
    00.12.48/E AutoTools Json Read: plugin comp: com.joaomgcd.autotools/com.joaomgcd.autotools.broadcastreceiver.BroadcastReceiverFire
    00.12.48/E add wait type Plugin1 time 60
    00.12.48/E add wait type Plugin1 done
     
  3. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,421
    Likes Received:
    792
    It seems that maybe one of the variables that should contain json, didn't? :) Can you please post your description? Thanks!
     
  4. Elizabeth Ellis

    Elizabeth Ellis Member

    Joined:
    Nov 3, 2016
    Messages:
    34
    Likes Received:
    5
    thanks...here it is...
    Profile: Read It Later (610)
    Event: AutoShare [ Configuration:Command: Read Later
    Sender: all
    Subject: all
    Text: all
    Image: all ]
    Enter: Read Later (626)
    A1: Flash [ Text:Adding to read it later %assubject %astext Long:Off ]
    A2: Variable Set [ Name:%assubject To:some text Recurse Variables:Off Do Maths:Off Append:Off ]
    A3: Variable Set [ Name:%astext To:some text Recurse Variables:Off Do Maths:Off Append:Off ]
    A4: AutoTools Json Write [ Configuration:Separator: ,
    Json Input: %ReadLater
    Prettify: true
    Add to Array Key: items
    Array Object Keys: subject,text
    Array Object Values: %assubject|%astext
    Arrays Separator: | Timeout (Seconds):60 ]
    A5: Flash [ Text:%readlater Long:Off ]
    A6: Variable Set [ Name:%Readlater To:%readLater Recurse Variables:Off Do Maths:Off Append:Off ]
     
  5. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,421
    Likes Received:
    792
    Can you check what %Readlater contains?
     
  6. szmerek

    szmerek Member

    Joined:
    Jul 4, 2016
    Messages:
    124
    Likes Received:
    18
    Is there a typo?
     
  7. Joao Apps (not official)

    Joao Apps (not official) New Member

    Joined:
    Feb 11, 2017
    Messages:
    1
    Likes Received:
    1
    Tip: If you want to use AutoShare as default link opener, check %asfile1, as that is where you will find the link you chose to open. As I use it to select browser (Chrome, Firefox, Incognito or send to PC).
     
    Matthias likes this.
  8. crepusculi

    crepusculi New Member

    Joined:
    Jun 29, 2017
    Messages:
    3
    Likes Received:
    1
    Would you be willing to post the XML for this project?
     
  9. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,421
    Likes Received:
    792
    Sorry, I don't have it anymore now. What part couldn't you get to work?
     
  10. Jeffery Schimes

    Jeffery Schimes New Member

    Joined:
    Feb 7, 2017
    Messages:
    2
    Likes Received:
    0
    Your "L's are backwards capitalized in your A6
     
  11. Jeffery Schimes

    Jeffery Schimes New Member

    Joined:
    Feb 7, 2017
    Messages:
    2
    Likes Received:
    0
    I have messed with this example for the better part of a day and I keep coming up with the same problems. In the JSON variable, it always puts the text before the subject. When I share a web page to this, I don't get the web link, I get the title of the page instead. I can't get it to delete, I suspect, that's part of my first problem.
     

Share This Page