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

#41

@kcalsnur for now, no

The problem is, meteo data format change when data are more than 2 weeks old.
I have no time to develop this now but it’s in my todo list !

#42

I’ve made a huge upgrade of Pilea and I would like some testers before releasing it.

If you want to help me, upgrade your Pilea from testing branch:

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

cheers

#43

Quickly tested and approved :+1:

1 Like
#44

I tested it and so far, I didn’t get any issues.

1 Like
#45

No issue with this upgrade. Nice job !

#46

Ok then i’m releasing this new version:

Shipped version Pilea 0.3.2:

  • Symfony 3 to Symfony 4
  • Handle front asset with Webpack
  • No more MSDN, all assets are now local
  • Revamped About and Config page
  • New responsive navigation
  • New Welcome page, displayed after installation
  • Revamp DJU x Conso dashboard to a more generic Energy x Meteo dashboard
  • Add a command to get current version of Pilea
  • Init migration mechanism
  • fix minor bugs

Enjoy :slight_smile:

1 Like
#47

Hello, thx a lot, Pilea works perfectly with this upgrade !!! :slight_smile:

martoni

#48

I guess that because of Symphony 4 that you also decided to add php 7.2.
But unfortunately, using php 7.2 instead of 7.0 isn’t without consequences for others apps.

Also, adding an extra repository is always a bad idea. See above…
I’m going to have a look to a new helper to manage php versions, meanwhile, your app can’t stay that way.

#49

oh, sorry :confused:

I based my work on https://github.com/YunoHost-Apps/kimai2_ynh but wasn’t a good idea. Maybe we should warn @kanhu too

First:
How can I fix this quickly ? What can I do to prevent people to have this kind of issue ?

Then:
I don’t know how to manage php version otherway ?
Do you know an app which use php 7.2 correctly ?
I had a quick look at the nexrtcloud package but I can’t find where they manage this

#50

@kanhu ! You’re supposed to show a good example :wink:

The first thing is to not use sudo update-alternatives to replace the default version of php.
Then, you’ll have to find a way to use correctly the version you need. The good news are first, Stretch has been made to support multiple versions of php at the same time.
I don’t know how exactly yet though…
The second good news is that I’m going to work on it to create a new helper, and I already grabbed some interesting reading about it.

2 Likes
#51

About repositories first, here some helpers to handle them securely

#52

@Maniack_Crudelis
Have some one tested this helper? How much priority should be kept to give the packages of the stable version be kept on priority?

#53

This helper is brand new, no one has probably tested it yet except me partially.

Anyway, it’s design to be simply used with the “main” helper without worrying about the value of the pin.

#54

Hello,

Thanks for your appli !

I have install Pilea on my yunohost instance and it works perfectly since 3 month.

But I upgrade my server with a new hardware and I install Pilea on the new serveur.

How can I recover my data from the old server ?

#55

Maybe by using YunoHost backup/restori feature :slightly_smiling_face:
Some time ago I had a problem with a pilea upgrade so I manually made a MySQL backup/restore and everything worked just fine.

If needed I can try to find the commands I used but you’ll find easily how to do it by searching mysqldump on Internet :slightly_smiling_face:

1 Like
#56

There’s no such feature in pilea for now. But the solution @Mamie suggests should ne enough :slight_smile:

#57

Hi there,

Thank you so much for this fantastic work. Really impressive, and even more useful! :smiley:

Something bothers me though. The readme on your git repo says:

Be aware that there’s no security provided with this app for now, no login, no users, nothing. So if you install it on a server, set it accessible only on your local network.

Does this warning only apply to the “hard way” installation?

Thanks,

Geoffrey.

#58

yep, it’s for the hard way installation. Pilea doesn’t handle users/login yet.

When you install it with YunoHost, if you let Pilea as a none public application, then Pilea’s access is protected by YunoHost’s firewall.

You can also restrict Pilea’s access to only some users like for any YunoHost app

cheers
Simon

#59

Hi!

On my VPS, the install fails. I get this warning message:

2019-05-14 16:06:50,612: WARNING - PHP Fatal error:  Uncaught TypeError: Return value of Symfony\Component\Dotenv\Dotenv::populate() must be an instance of Symfony\Component\Dotenv\void, none returned in /var/www/pilea/vendor/symfony/dotenv/Dotenv.php:146
2019-05-14 16:06:50,613: DEBUG - + local exit_code=255
2019-05-14 16:06:50,613: WARNING - Stack trace:
2019-05-14 16:06:50,613: DEBUG - + '[' 255 -eq 0 ']'
2019-05-14 16:06:50,613: WARNING - #0 /var/www/pilea/vendor/symfony/dotenv/Dotenv.php(469): Symfony\Component\Dotenv\Dotenv->populate(Array, false)
2019-05-14 16:06:50,613: DEBUG - + trap '' EXIT
2019-05-14 16:06:50,613: WARNING - #1 /var/www/pilea/vendor/symfony/dotenv/Dotenv.php(51): Symfony\Component\Dotenv\Dotenv->doLoad(false, Array)
2019-05-14 16:06:50,614: DEBUG - + set +eu
2019-05-14 16:06:50,614: WARNING - #2 /var/www/pilea/vendor/symfony/dotenv/Dotenv.php(71): Symfony\Component\Dotenv\Dotenv->load('/var/www/pilea/...')
2019-05-14 16:06:50,614: DEBUG - + echo -e '!!\n  pilea'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-05-14 16:06:50,614: WARNING - #3 /var/www/pilea/config/bootstrap.php(16): Symfony\Component\Dotenv\Dotenv->loadEnv('/var/www/pilea/...')
2019-05-14 16:06:50,614: DEBUG - + type -t ynh_clean_setup
2019-05-14 16:06:50,614: WARNING - #4 /var/www/pilea/bin/console(28): require('/var/www/pilea/...')
2019-05-14 16:06:50,615: DEBUG - + ynh_die
2019-05-14 16:06:50,615: WARNING - #5 {main}
2019-05-14 16:06:50,615: DEBUG - + local legacy_args=mc
2019-05-14 16:06:50,615: WARNING -   thrown in /var/www/pilea/vendor/symfony/dotenv/Dotenv.php on line 146
2019-05-14 16:06:50,615: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2019-05-14 16:06:50,615: WARNING - !!
2019-05-14 16:06:50,616: DEBUG - + declare -Ar args_array
2019-05-14 16:06:50,616: WARNING -   pilea's script has encountered an error. Its execution was cancelled.
2019-05-14 16:06:50,616: DEBUG - + local message
2019-05-14 16:06:50,616: WARNING - !!
2019-05-14 16:06:50,616: DEBUG - + local ret_code
2019-05-14 16:06:50,616: WARNING - 
2019-05-14 16:06:50,617: DEBUG - + ynh_handle_getopts_args
2019-05-14 16:06:50,617: DEBUG - + set +x
2019-05-14 16:06:50,617: DEBUG - + echo ''
2019-05-14 16:06:50,617: DEBUG - + exit 1

Full log is here.

Thanks :slight_smile:

#60

hi @jln,

It seems to be a bug with PHP version. It may appears if other app had install other PHP versions

I’m working on a correction to fix the way Pilea YunoHost Package deals with PHP version but I don’t have time now for to finish it…