Page 2 of 2
Re: Version 2.2.1 is out
Posted: 23 Feb 2016 13:26
by islipfd19
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.
Re: Version 2.2.1 is out
Posted: 23 Feb 2016 14:07
by pz1
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 (4.48 KiB) Viewed 10245 times
Re: Version 2.2.1 is out
Posted: 24 Feb 2016 13:52
by islipfd19
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.
Re: Version 2.2.1 is out
Posted: 24 Feb 2016 17:40
by ronie
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.
Re: Version 2.2.1 is out
Posted: 25 Feb 2016 10:11
by ronie
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?
Re: Version 2.2.1 is out
Posted: 26 Feb 2016 00:37
by islipfd19
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.
Re: Version 2.2.1 is out
Posted: 26 Feb 2016 13:36
by islipfd19
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!
Re: Version 2.2.1 is out
Posted: 26 Feb 2016 14:45
by pz1
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)
Re: Version 2.2.1 is out
Posted: 27 Feb 2016 16:37
by islipfd19
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.