MxInfo tool collection

Discussions about Z-Way software and Z-Wave technology in general
piet66
Posts: 80
Joined: 04 Feb 2017 17:00

Re: MxInfo tool collection

Post by piet66 » 05 Aug 2019 17:23

Ok, I haven't used this app yet and I don't know it.

My tool gets the information from http://IP:8083/ZAutomation/api/v1/instances. There in Cron section all jobs are mentioned which are enabled to fire. This section is build up at start of z-way-server. A restart should remove all old tasks.

But generally an app which stops has to remove all tasks which it has created. If it doesn't it is badly programmed.

There's a garbage collection missing in this system.
Raspberry Pi 3 Model B Rev 1.2
Raspbian GNU/Linux 9 (stretch)
ZMEERAZ 2016, SDK Version: 6.51.03, Serial API Version: 05.00
Z-Way version v3.0.0 from 2019-07-18 02:13:01 +0300 (build 146fa9b44605907737b17032131987cab573da1f)

micky1500
Posts: 92
Joined: 07 Feb 2016 16:29

Re: MxInfo tool collection

Post by micky1500 » 05 Aug 2019 17:43

Thanks Piet66

I was hoping for an easy fix !
Thanks for trying to help.

My system has got a bit messy, but too big now to go for a factory reset.
I need to learn a bit more JavaScript programming.
With the info from Mxinfo, I'll try to properly delete the broken Cron Jobs.
Raspi 3(Stretch), Zwave.me 3.0.0

piet66
Posts: 80
Joined: 04 Feb 2017 17:00

Re: MxInfo tool collection

Post by piet66 » 05 Aug 2019 18:15

I don't mean a factory reset. Only stop and start again the z-way-server service:
On Raspi terminal do:
sudo /etc/init.d/z-way-server stop
sudo /etc/init.d/z-way-server start

Which app were you talking about? From automations page or from the old apps page?
I have no much experience with the new automations functions. But I have the feeling (maybe I'm wrong) that the transformation doesn't always work correctly.
Raspberry Pi 3 Model B Rev 1.2
Raspbian GNU/Linux 9 (stretch)
ZMEERAZ 2016, SDK Version: 6.51.03, Serial API Version: 05.00
Z-Way version v3.0.0 from 2019-07-18 02:13:01 +0300 (build 146fa9b44605907737b17032131987cab573da1f)

micky1500
Posts: 92
Joined: 07 Feb 2016 16:29

Re: MxInfo tool collection

Post by micky1500 » 05 Aug 2019 18:44

I have restarted, many times. Occasionally a full power on/off cycle.
The old apps page, App called 'Schedule' I have 20 instances set.
I think I also had this issue with rogue Cron jobs running while on 2.3.8

Think i'm passed the point where it will self fix.
I will be looking into writing a JavaScript to delete the rogue Cron Jobs.

I like to play, so it might be fun to try.
Raspi 3(Stretch), Zwave.me 3.0.0

piet66
Posts: 80
Joined: 04 Feb 2017 17:00

Re: MxInfo tool collection

Post by piet66 » 05 Aug 2019 19:19

Hm,
when I'm right that the task list is build up at start, there must be anyone who adds these tasks again. So such a script wouldn't be a solution.

Perhaps you can
- detect in Mx tools which app instance has created the tasks,
- make a copy of this instance
- and delete the old one?

You can also have a look in http://<ip>:8083/ZAutomation/api/v1/instances/<instance no> if there are any wrong data.
Raspberry Pi 3 Model B Rev 1.2
Raspbian GNU/Linux 9 (stretch)
ZMEERAZ 2016, SDK Version: 6.51.03, Serial API Version: 05.00
Z-Way version v3.0.0 from 2019-07-18 02:13:01 +0300 (build 146fa9b44605907737b17032131987cab573da1f)

Post Reply