(solved) upload rule remote via json or any other remote script
Moderators: grovkillen, Stuntteam, TD-er
(solved) upload rule remote via json or any other remote script
Hi
I am wondering if it would be possible to use the flash process remote
via json
or other methodes?
Thanks T
I am wondering if it would be possible to use the flash process remote
via json
or other methodes?
Thanks T
Last edited by riker1 on 28 Mar 2019, 18:15, edited 1 time in total.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: upload rule remote via json or any other remote script
You can use curl and upload a rule text file.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: upload rule remote via json or any other remote script
Sounds great
Naming of Textfile Just rules1.txt?
Thanks
Naming of Textfile Just rules1.txt?
Thanks
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: upload rule remote via json or any other remote script
Yep, and make sure you have the latest and greatest version.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: upload rule remote via json or any other remote script
Hi I am struggling with the curl command
do you have an example please?
I assume it is a curl -u upload
Thanks thomas
do you have an example please?
I assume it is a curl -u upload
Thanks thomas
Re: upload rule remote via json or any other remote script
Hi
could yo upost a template uploading rules?
It is not working for me.
Thanks T
could yo upost a template uploading rules?
It is not working for me.
Thanks T
Re: upload rule remote via json or any other remote script
Code: Select all
could you post a template uploading rules? It is not working for me.
Try this:
1. Go to the rules tab and choose the rule set you wish to update. If it does not exist then this action will create a blank rule file in SPIFFS with the rulesX.txt naming convention. If there is already a rule file present then that is fine too.
2. Close the rules tab (exit the rules page). This is mandatory! Failure to do this will cause rules1.txt to be copied to the currently selected rules page when you use curl. {this bug caused me a lot of grief}
3. Use curl to submit the new ruleX.txt file, using this format:
Code: Select all
curl -v -F upload=@FULL_PATH_TO_RULES\rules2.txt http://IP_ADDRESS/upload
- Thomas
Re: upload rule remote via json or any other remote script
Hi Thomas
thanks working perfect!!
thanks working perfect!!
Re: (solved) upload rule remote via json or any other remote script
Great! Thanks for confirming the workaround helped you out.
- Thomas
- Thomas
- schnurzel59
- Normal user
- Posts: 32
- Joined: 18 Feb 2019, 12:41
- Location: Germany
- Contact:
Re: (solved) upload rule remote via json or any other remote script
ThomasB do not Sleeping. ThomasB must be an Robot.
Greetings Martin
Oh God, my English is horrible.
Oh God, my English is horrible.
Re: (solved) upload rule remote via json or any other remote script
Shhhush! That's suppose to be a secrete.ThomasB must be an Robot.
- Thomas
Who is online
Users browsing this forum: No registered users and 46 guests