Page 1 of 1
update rflink automaticly
Posted: Thursday 01 December 2016 15:16
by remb0
I found some nice script to automaticly update the rflink firmware.
https://github.com/roondar/RFLink-update/
who creates an wiki page with a how to?
- install scripts, give execution rights
- create a virtual switch of cronjob that runs update.sh
working of this script:
Creates a directory in RFLink tMP
- download newest version FW stable in / tmp / RFLink /
- Controles if avrdude andJQ are installed, if not: installs it automaticly
- Check the following info" (idx, serial port, name, versions)
- Updates FW
git clone
https://github.com/roondar/RFLink-update.git
cd RFLink-update
sh ./update_RFLink.sh
credits to deennoo
Re: update rflink automaticly
Posted: Thursday 01 December 2016 16:43
by deennoo
Hi there.
This is a part of working script
Please be patiente, stunteam is looking to add it to domoticz for all distro
Original topic was here :
https://easydomoticz.com/forum/viewtopi ... =22&t=2832
Maybe you can ask to Roondar him self !
Have you try it ?
.sh files is mine ! thank for it !
.py is Roondar one's
Roondar says that is looking for a better way about this script.
Roondar Python's one is better again, it solve the fw check probleme who existe on the sh one.
You have to install python and some dep : like psutil
On the bash one fw check is flase, and version update is hardcoded
On Python 's one Script check if their really a new fw and then update if necessary
Next big step is to check Domoticz port : actually both script are using port 8080, but syno can use 8084 and some advanced user can use custom port
if you want to help your welcome !
One thing about python :
You have to change :
to
Re: update rflink automaticly
Posted: Thursday 01 December 2016 16:46
by Stuntteam
Yeah, wait until the developers of the script are done and everything is properly tested.
Btw, great work Deennoo, Roondar and all the others that are working on it..
Re: update rflink automaticly
Posted: Saturday 25 March 2017 18:10
by roondar
Hi all,
I just updated my code
https://github.com/roondar/RFLink-update
I use it for about 2 months now without issues.
Enjoy.

Re: update rflink automaticly
Posted: Saturday 25 March 2017 18:23
by Derik
Can this implement in Domoticz like the Rfxcom?
Or do i need a different script install?
Re: update rflink automaticly
Posted: Saturday 25 March 2017 18:45
by roondar
Derik wrote:Can this implement in Domoticz like the Rfxcom?
Or do i need a different script install?
I don't have any Rfxcom.
The upgrade process of Rfxcom need a particular .exe
So, it won't be compatible with my script.
Re: RE: Re: update rflink automaticly
Posted: Saturday 25 March 2017 22:07
by deennoo
roondar wrote:Derik wrote:Can this implement in Domoticz like the Rfxcom?
Or do i need a different script install?
I don't have any Rfxcom.
The upgrade process of Rfxcom need a particular .exe
So, it won't be compatible with my script.
On domoticz running on a pi you can apply update direct from domoticz.
@Derick
Installation script be sure it can be run, then set a virtual pushon and put script://waytoyourscript/updaterflink.py on action ON.
Then set a planning for on every monday at 8:00 and forget it.
Update will be check and apply full auto.
Re: update rflink automaticly
Posted: Saturday 25 March 2017 23:12
by blauwebuis
Couldn't Domoticz be pre-packaged with lots of scripts (like the presence detection script too), and then manage the running of those scripts by itself, without Crontab? Then Domoticz could offer simple settings-pages for those scripts that set the parameters. Perhaps it could read a list of required parameters from the top of the script.
Re: update rflink automaticly
Posted: Saturday 25 March 2017 23:52
by roondar
blauwebuis wrote:Couldn't Domoticz be pre-packaged with lots of scripts (like the presence detection script too), and then manage the running of those scripts by itself, without Crontab? Then Domoticz could offer simple settings-pages for those scripts that set the parameters. Perhaps it could read a list of required parameters from the top of the script.
Well, it's already implemented in Domoticz with plugins but I think Domoticz dev team couldn't maintain them all.
So, as Deenoo said you can create a dummy button and trigger a script when you want.
@Deenoo
I see the upgrade firmware function in
https://github.com/domoticz/domoticz/bl ... Serial.cpp.
My knowledge in C is very limited but, you need to provide a firmware file before upgrade ?
If someone have some link with how to upgrade rfxcom firmware's on Linux, I could be update my script.
Re: update rflink automaticly
Posted: Sunday 26 March 2017 12:57
by deennoo
Yes you have to choose your new Fw to update on rfx config page.
Really not do easy than your script.
Python plugin are still new and some changé have still to be made.
Be patient with this, and as this an open source, you can help if you want, be translate présence détection on domoticz plugin.
Just before think to all aviable possibility :
Hci dongle choice
Update refresh
Ble device auto discover
Lib needed for plugin with auto installation
Etc etc
Re: update rflink automaticly
Posted: Sunday 26 March 2017 14:59
by blauwebuis
Sorry, I meant shell scripts specifically.
Re: update rflink automaticly
Posted: Tuesday 21 November 2017 13:29
by basmaaks
Great script, running every night so always up to date, THANKS.
One question, how to modify it so I get an email when your scripts has update the rflink ?
Re: update rflink automaticly
Posted: Friday 22 December 2017 11:18
by roondar
basmaaks wrote: ↑Tuesday 21 November 2017 13:29
Great script, running every night so always up to date, THANKS.
One question, how to modify it so I get an email when your scripts has update the rflink ?
From the official python documentation, there is a example at the bottom of the page.
Code: Select all
import smtplib
def prompt(prompt):
return raw_input(prompt).strip()
fromaddr = prompt("From: ")
toaddrs = prompt("To: ").split()
print "Enter message, end with ^D (Unix) or ^Z (Windows):"
# Add the From: and To: headers at the start!
msg = ("From: %s\r\nTo: %s\r\n\r\n"
% (fromaddr, ", ".join(toaddrs)))
while 1:
try:
line = raw_input()
except EOFError:
break
if not line:
break
msg = msg + line
print "Message length is " + repr(len(msg))
server = smtplib.SMTP('localhost')
server.set_debuglevel(1)
server.sendmail(fromaddr, toaddrs, msg)
server.quit()
Just add this code after the line 136: notify('Update Done, Thanks using RFLink').
Don't miss to indent the code at the same level.