Skip to content

Conversation

@Crescendo-BLYAT
Copy link

@Crescendo-BLYAT Crescendo-BLYAT commented Feb 4, 2017

I split the script as there's no need to mix the daemon installation with pre-firmware update steps.
So the original script is only for daemon installation.
The other 2 is for firmware update preparation and post firmware update to return the OS to original state.

Futher: the installation script also include daemon installation & steps to enable dtoverlay needed for activating RTC as mentioned in: AdaFruit RTC Installation


I also changed the fan speed displaying from RPM to % coz the current script unable to parse fan speed 60% (i2cget as 0x3c).
It throws error:

UPS PIco FAN Speed....:
Traceback (most recent call last):
File "./pico_status.py", line 263, in
print " ","UPS PIco FAN Speed....:",fan_speed(),"RPM"
File "./pico_status.py", line 201, in fan_speed
return int (float(data) * 100)
ValueError: invalid literal for float(): 3c

Crescendo Fang added 4 commits February 4, 2017 08:53
No need to mix up daemon installation and firmware update preparation step.
This is the script for firmware update preparation steps.
This script is for returning the OS to original state and undo all steps in firmware_update.sh.
@Crescendo-BLYAT
Copy link
Author

Crescendo-BLYAT commented Feb 4, 2017

renamed the firmware_update.sh to pre_firmware_update.sh

Better to use percentage for fan speed as the original script unable to parse 60% fan speed (0x3c) and throws this error below:

  UPS PIco FAN Speed....:
Traceback (most recent call last):
  File "./pico_status.py", line 263, in <module>
    print " ","UPS PIco FAN Speed....:",fan_speed(),"RPM"
  File "./pico_status.py", line 201, in fan_speed
    return int (float(data) * 100)
ValueError: invalid literal for float(): 3c
@Crescendo-BLYAT Crescendo-BLYAT changed the title Splitting the Script Splitting the Installation Script + Fix for Fan Speed in pico_status Feb 4, 2017
@Crescendo-BLYAT
Copy link
Author

Crescendo-BLYAT commented Feb 4, 2017

Also if you can (coz its beyond my capability), please also add in config_for_pico.sh script to comment out this:

if [ -e /run/systemd/system ] ; then
    exit 0
fi

in /lib/udev/hwclock-set to enable the real-hwclock.

Crescendo Fang added 2 commits February 4, 2017 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant