Version 2.2.1 is out

Discussions about RaZberry - Z-Wave board for Raspberry computer
islipfd19
Posts: 126
Joined: 07 Jul 2014 03:35

Re: Version 2.2.1 is out

Post by islipfd19 » 23 Feb 2016 13:26

ronie wrote:Package name should be the same as class name e.g. 'AeonMultiSensor' (like it already is in HA /modules) and the structure should look like this:
islipfd19 wrote: index.js
module.json
htdocs\icon.png
lang\de.json
lang\en.json
lang\ru.json
Thanks! But I'm pretty sure it is. I fail to see why it won't upload.

pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Version 2.2.1 is out

Post by pz1 » 23 Feb 2016 14:07

islipfd19 wrote:Thanks! But I'm pretty sure it is. I fail to see why it won't upload.
The ZIP in your earlier post isn't correct, the directory level AeonMultiSensor should not be there:
Capture.PNG
Capture.PNG (4.48 KiB) Viewed 5616 times

islipfd19
Posts: 126
Joined: 07 Jul 2014 03:35

Re: Version 2.2.1 is out

Post by islipfd19 » 24 Feb 2016 13:52

pz1 wrote:
islipfd19 wrote:Thanks! But I'm pretty sure it is. I fail to see why it won't upload.
The ZIP in your earlier post isn't correct, the directory level AeonMultiSensor should not be there:
The attachment Capture.PNG is no longer available
I've tried uploading the attached one as well and it failed.
Attachments
AeonMultiSensor.tar.gz
(44.34 KiB) Downloaded 176 times

User avatar
ronie
Posts: 58
Joined: 29 Jun 2015 09:50

Re: Version 2.2.1 is out

Post by ronie » 24 Feb 2016 17:40

Jup upload fails. There seems to be an error during upload that is not handled correctly.

We'll check this. And we'll check the format of your package too.

User avatar
ronie
Posts: 58
Joined: 29 Jun 2015 09:50

Re: Version 2.2.1 is out

Post by ronie » 25 Feb 2016 10:11

Seems that .tar.gz isn't the same as .tar.gz ...

I've packed your package with the programm 7-Zip (first made a .tar and then a .gz from .tar)
And tried to upload it - works without problems.

As you can see also the size is a bit different ...

So how did you pack your module? With an othe programm?
Attachments
AeonMultiSensor.tar.gz
(43.72 KiB) Downloaded 198 times

islipfd19
Posts: 126
Joined: 07 Jul 2014 03:35

Re: Version 2.2.1 is out

Post by islipfd19 » 26 Feb 2016 00:37

ronie wrote:Seems that .tar.gz isn't the same as .tar.gz ...

I've packed your package with the programm 7-Zip (first made a .tar and then a .gz from .tar)
And tried to upload it - works without problems.

As you can see also the size is a bit different ...

So how did you pack your module? With an othe programm?
I packed it as tar.gz, not tar and then gz. I'll try that and report back.

islipfd19
Posts: 126
Joined: 07 Jul 2014 03:35

Re: Version 2.2.1 is out

Post by islipfd19 » 26 Feb 2016 13:36

ronie wrote:Seems that .tar.gz isn't the same as .tar.gz ...

I've packed your package with the programm 7-Zip (first made a .tar and then a .gz from .tar)
And tried to upload it - works without problems.

As you can see also the size is a bit different ...

So how did you pack your module? With an othe programm?
I tried your method with 7-zip form a WIndows PC and still no luck; I get an invalid path. I've even attempted using a zip format.

Albeit, my attempts at this have been using both a Windows 7 PC with 7-Zip and Ubuntu 15.10!

pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Version 2.2.1 is out

Post by pz1 » 26 Feb 2016 14:45

I did make my package as follows on my Raspberry Pi:

Code: Select all

cd /opt/z-way-server/automation/userModules/PVLogger
 sudo tar -cvzf PVLogger.tar.gz *
With WinSCP I did transfer the archive to my win7 PC and uploaded it. (actually a couple of weeks ago)

(I did send that recipe to Marcel K for possible inclusion in the manual)

islipfd19
Posts: 126
Joined: 07 Jul 2014 03:35

Re: Version 2.2.1 is out

Post by islipfd19 » 27 Feb 2016 16:37

pz1 wrote:I did make my package as follows on my Raspberry Pi:

Code: Select all

cd /opt/z-way-server/automation/userModules/PVLogger
 sudo tar -cvzf PVLogger.tar.gz *
With WinSCP I did transfer the archive to my win7 PC and uploaded it. (actually a couple of weeks ago)

(I did send that recipe to Marcel K for possible inclusion in the manual)
That's the difference, I was using the folder to create the packages, tar.gz/zip; which is wrong. The files should be used instead as your command illustrates. I've upload my modules without any issue.

Post Reply