[Pilea] A little dashboard to analyse your electricity consumption data from Linky

Thank you
By an MySQL export it works !

Thanks a lot! I’ll wait :slight_smile:

Well thank you! Working great!

Hi everyone,

I’ve made a big update in Pilea yunohost package’s scripts and I would like some of you to test it.

Can some of you try to upgrade Pilea from testing branch :

sudo yunohost app upgrade pilea -u https://github.com/YunoHost-Apps/pilea_ynh/tree/testing --debug

Thanks !

NB: I’m on Pilea 0.4 version which will handle users and let people have multiple linkys but before releasing it, I’ve to be sure this scripts works :wink:

Hi,

I’ve made the upgrade by ssh but I alway have the V 0.3.16 …

Upgrade made, I’m also in 0.3.16 (0.3.14 before update)

Hi,

Normally, you was in 0.3.14 before the update.

Being in 0.3.16 after the update is the correct behavior, the update was not so much in Pilea but in the way pilea’s package for yunohost is developed + Pilea should now use php7.3 and handle correctly PHP version

Bonjour,
Existe t il une méthode pour mettre à jour Pilea et profiter de la dernière version (0.4.4) sur yunohost ?
Merci.

PS mon yunohost est déja sur php 7.3

Pour l’instant ce n’est disponible qu’en testing.
Il est possible de faire l’upgrade vers la testing en ligne de commande

yunohost app upgrade -u https://github.com/YunoHost-Apps/pilea_ynh/tree/testing pilea

Keep in mind it’s a testing, so there are more probability to be some bugs or security issues.

1 Like

Bonjour,

Oui je dois finir mes tests pour livrer la dernière version, mais je manque de temps…

J’ai remarqué un bug pour le moment sur la version de la branche testing, à priori, quand on ajoute un utilisateur à yunohost, il n’est pas créeé côté Pilea.
Petit contournement en attendant que je corrige : l’admin de Pilea peut créer des utilisateurs, il suffit de créer un utilisateur avec le même nom que l’utilisateur Pilea.

N’hésite pas à me faire un retour si tu testes la nouvelle version !

I just tried to upgrade to 0.5, and it failed.
https://paste.yunohost.org/emaqinixig.bash

Here is the part I think is interesting :slight_smile:

Attention : [ERR] !!
Attention : pilea’s script has encountered an error. Its execution was cancelled.
Attention : !!
Attention : Please find here an extract of the log before the crash:
Attention : [DEBUG]: WARNING - An exception occurred while executing ‘INSERT INTO users SELECT * FROM user’:
Attention : [DEBUG]: WARNING -
Attention : [DEBUG]: WARNING -’ for key ‘UNIQ_1483A5E9F85E0677’
Attention : [DEBUG]: WARNING -
Attention : [DEBUG]: WARNING -
Attention : [DEBUG]: WARNING - In PDOConnection.php line 80:
Attention : [DEBUG]: WARNING -
Attention : [DEBUG]: WARNING -’ for key ‘UNIQ_1483A5E9F85E0677’
Attention : [DEBUG]: WARNING -
Attention : [DEBUG]: WARNING -
Attention : [DEBUG]: WARNING - In PDOConnection.php line 75:
Attention : [DEBUG]: WARNING -
Attention : [DEBUG]: WARNING -’ for key ‘UNIQ_1483A5E9F85E0677’
Attention : [DEBUG]: WARNING -
Attention : [DEBUG]: WARNING -
Attention : [DEBUG]: WARNING -
Attention : [DEBUG]: WARNING -
Attention : [DEBUG]: DEBUG - + ynh_exit_properly
Attention : [ERR] Upgrade failed.

Do you have several users with the same username ?

do you have access to the database ? like with phpMyAdmin for example ?
can you try ‘select username from user;’ and see if there’s 2 users with the same username ?

Did you test it from the testing branch ?

No users with the same name :worried:
I was in 0.4.4 in testing.

I tried to share a linky with another user, without success (nothing was available for the other account), maybe it is linked ?

Hum I think I’ve found my mistake.

Can you retry with: sudo yunohost app upgrade pilea -u https://github.com/YunoHost-Apps/pilea_ynh/tree/testing

Update successful :slight_smile:
0.5.1 installed :+1:

1 Like

Bonjour,

Je viens de merger une grosse mise à jour de Pilea, on passe de la versoin 0.3.16 à la version 0.5.3

Au programme :

  • Pilea gère maintenant les utilisateurs Yunohost :
    • Possibilité de partage de compteurs entre utilisateurs
    • Possibilité de configurer un compteur comme public (visible par tous les utilisateurs)
  • Possibilité d’exporter ses données
  • Pas mal d’améliorations graphiques

Bonne semaine !
Simon

3 Likes

Mise à jour aujourd’hui sans problème !

Merci pour ce que tu fais :wink:

1 Like

Pour info, les compteurs créés avant la mise a jours appartiennent après la mise à jour à l’utilisateur admin.

Si, par exemple, vous avez une instance yunohost familiale et que vous souhaitez que tous les utilisateurs de l’instance puissent voir les données d’un compteur vous pouvez, via l’interface de configuration :

  • soit le rendre “public”
  • soit le partager avec plusieurs utilisateurs

Hello,

J’ai perdu mon historique avec ces données avec la mise a jour.
Est ce normal?
Est ce récupérable?

Ah ba non… ça a tout récupéré…
Top, merci!

1 Like