How can we help?


Unable to change parameter names in custom parser

Comments

7 comments

  • Avatar
    Richard Mann

    And you are welcome to look at the code. It's a pretty simple API that works really well with RainMachine because it can search for weather stations based on lat/long.

    0
    Comment actions Permalink
  • Avatar
    RainMachine Nicholas

    The params are saved into DB, if you run directly on RainMachine the easiest way to fix would be to press DEFAULTS in web ui to remove them (you'll probably need a defaultParams = {} defined in your parser under your params = {} )

    As for the disappearing after reboot, I'm not sure why. I checked and the parsers that I uploaded seems fine. If you give me a URL to your code I can take a look.

    0
    Comment actions Permalink
  • Avatar
    Richard Mann

    Thanks,

    The defaultParams have enabled the stationID in the UI but...

    I just cannot get it to save any data for stationID and therefore run the remaining main parser code.

    No idea what to do from here.

    It just makes not sense when apiKey works fine.

    0
    Comment actions Permalink
  • Avatar
    RainMachine Nicholas

    I think something got stuck in the DB and Defaults doesn't work. One way to deal with this would be to rename parser file name and also the class name.  Another option would be to edit the /rainmachine-app/DB/Default/rainmachine-parser.sqlite and remove the parser from it or use Reset To Defaults (and restore from backup afterwards).

     

     

    0
    Comment actions Permalink
  • Avatar
    Richard Mann

    Thanks.

    So I set a default value for stationID and bingo! It worked.

    All the data populated and RainMachine has a new parser!

    Thanks for your help.

    Still need to solve the "deleting on reboot" problem.

    0
    Comment actions Permalink
  • Avatar
    Richard Mann

    One more question for importing data.

    Do you set the timestamp in local time or UTC? This is not clear in the examples.

    It looks like my data may not be in my time zone.

    0
    Comment actions Permalink
  • Avatar
    RainMachine Nicholas

    Should be in UTC, for example in NOAA parser we forcefully set to UTC.

    0
    Comment actions Permalink

Please sign in to leave a comment.