genielabs / HomeGenie

HomeGenie, the programmable automation intelligence
https://homegenie.it
GNU General Public License v3.0
388 stars 154 forks source link

Can we use the HG manual updater to revert to a previous build? #338

Closed tuicemen closed 4 years ago

tuicemen commented 5 years ago

I've been testing the latest beta builds but these have rendered many of my wizard created programs inoperable. Is it possible to use the manual updater in HG to revert back to a build that was stable for my situation?

If not may be this can be added as a option at least while beta builds are installed. It sure would save time and may lead to others testing beta builds.

genemars commented 5 years ago

Latest build (1.2-beta.8) should solve the issues with wizard scripts. Can you confirm?

tuicemen commented 5 years ago

Beta 8 does appear to solve the issue with wizard scripts. however most of mine use other user created programs which all fail if you load program data of a user created program like "E-Mail Cam Pictures" then click on edit program code displays but not trigger code so I suspect this is the issue for these

tuicemen commented 5 years ago

Just noticed in the user created programs there is an error icon on the right which appears in both the program code and start up code tabs. clicking on this displays "Object reference not set to an instance of an object"

genemars commented 5 years ago

If this is a c# user program, compiling/saving it might solve the issue.

mralapete commented 5 years ago

What version of Mono is this being tested with.

tuicemen commented 5 years ago

@mralapete I've reverted back to 1.1-stable.527 to get a working system. Since this was an update starting from 1.2.beta.2 I suspect it was the same unless the updates changed that. mono 4.2.6(Debian 4.2.6.2+dfsg-1) I'll attempt a fresh install on a new SD card and see if that fixes it. @genemars these were C# programs a reinstall of them still left out the start up code so I'd need to manually add all that info prior to compiling/saving I suspect but will try once I get a new SD image and HG installed on it.

tuicemen commented 5 years ago

Ok done a fresh install (not a update) of 1.2-beta.8 The Programs come up with an error when I open to edit however the start up code displays. so the updater is blocking or missing something. Clicking save HG reports an error something about format (script, script, script) no longer supported, says to use something instead but I can't read the whole message prior to it closing. However after saving the error disappears and I can run these programs.

I'm not sure a revert to previous build would have helped here as the issue may have followed the revert unless HG just ran a uninstall then install script. But that may have been your idea for this any ways @genemars .

tuicemen commented 5 years ago

I created a script to revert to a specific HG build which actually works very well for the X10 community created PiX10Hub Image as a work arround for now.