Spondoolies-Tech / minepeon

Miner UI
GNU General Public License v2.0
0 stars 3 forks source link

Firmware new upgrade notification #30

Open SyRenity opened 10 years ago

SyRenity commented 10 years ago

Add a small indicator (blue bubble?) to firmware tab, to visually show that a new FW is available.

For example using bootstrap style: http://www.tutorialspoint.com/bootstrap/bootstrap_badges.htm http://stackoverflow.com/questions/18730116/twitter-bootstrap-3-0-how-do-i-badge-badge-important-now

Or JS plugin: http://www.codebasehero.com/2011/07/jquery-notification-menu/ http://www.codebasehero.com/files/notification-menu/demo/index.html#

I will extend the web site to report the latest FW version available for a given board version.

SyRenity commented 10 years ago

When accessing the FW tab, it should show (in text) the latest available FW number.

syounger commented 10 years ago

@SyRenity , is there currently a url where I can check the latest available version? If not, I would write one, if you can give me access to the firmware code.

SyRenity commented 10 years ago

@syounger Done, you can always get the latest firmware version for the specific model ID, as follows: http://firmware.spondoolies-tech.com/release/latest?id=SP10

SyRenity commented 10 years ago

@syounger ger As per working with code, I really prefer you get a short course in Node.JS - I personally used this one to get me started: https://www.udemy.com/learn-nodejs-by-example/

syounger commented 10 years ago

@SyRenity Can you give me a url for the latest development version, so I can also offer that one?

SyRenity commented 10 years ago

Sure, as I sent Zvisha before: https://github.com/Spondoolies-Tech/minepeon/issues/26

On Mon, Mar 24, 2014 at 5:42 PM, syounger notifications@github.com wrote:

@SyRenity https://github.com/SyRenity Can you give me a url for the latest development version, so I can also offer that one?

Reply to this email directly or view it on GitHubhttps://github.com/Spondoolies-Tech/minepeon/issues/30#issuecomment-38459951 .

syounger commented 10 years ago

I added a cron job to create a file /tmp/fw_update with the latest version number available. curl -s --fail "http://firmware.spondoolies-tech.com/release/latest?id=SP10" > /tmp/fw_update commit tyg-bitcoin fe1d6bd

The firmware link is disabled when there is no update available.

commit d68fdca

SyRenity commented 10 years ago

It is visible in UI?

On Mon, Mar 24, 2014 at 6:57 PM, syounger notifications@github.com wrote:

Closed #30 https://github.com/Spondoolies-Tech/minepeon/issues/30.

Reply to this email directly or view it on GitHubhttps://github.com/Spondoolies-Tech/minepeon/issues/30 .

syounger commented 10 years ago

yes.

SyRenity commented 10 years ago

+1 :)

On Mon, Mar 24, 2014 at 7:04 PM, syounger notifications@github.com wrote:

yes.

Reply to this email directly or view it on GitHubhttps://github.com/Spondoolies-Tech/minepeon/issues/30#issuecomment-38471060 .

SyRenity commented 10 years ago

Please review my badge indication, and test with latest firmware upgrades.

Thanks.

syounger commented 10 years ago

Please discuss with @zvisha, I will work on it after zvisha confirms.

SyRenity commented 10 years ago

I already discussed it with Zvisha last night, unless there any change, you can proceed.

On Wed, Apr 2, 2014 at 2:06 PM, syounger notifications@github.com wrote:

Please discuss with @zvisha https://github.com/zvisha, I will work on it after zvisha confirms.

— Reply to this email directly or view it on GitHubhttps://github.com/Spondoolies-Tech/minepeon/issues/30#issuecomment-39317579 .

SyRenity commented 10 years ago

@syounger Note the /new_fw currently does not return anything (showing empty string on "Latest available version" http://take.ms/XNQxOP).

Please verify it's indeed generated.

syounger commented 10 years ago

Zvisha asked me to remove this from the earlier image. I added this back to the cron, in tyg-bitcoin commit 2ecfd8b.

SyRenity commented 10 years ago

Please verify the available upgrade notification is working properly now.

On Sat, Apr 5, 2014 at 9:50 PM, syounger notifications@github.com wrote:

Zvisha asked me to remove this from the earlier image. I added this back to the cron, in tyg-bitcoin commit 2ecfd8b.

— Reply to this email directly or view it on GitHubhttps://github.com/Spondoolies-Tech/minepeon/issues/30#issuecomment-39647330 .

syounger commented 10 years ago

The cron works properly. The firmware update page shows the latest version: Firmware upgrade Your current firmware version is 1.2.24 Latest available firmware version is 1.2.10

Note that something is wrong here, as current version is newer than available.

syounger commented 10 years ago

We should run this on boot also. Currently all our crons also need to run on boot. @goytin , can I have every cron job automatically running on boot, or do you expect we will have crons which should not run on boot, and it is better to use our startup script for the crons that have to run on boot?

SyRenity commented 10 years ago

We pushed to some miners upgrades manually (not via upgrade process), so this can be the case - ask Zvisha.

On Sun, Apr 6, 2014 at 11:53 AM, syounger notifications@github.com wrote:

The cron works properly. The firmware update page shows the latest version: Firmware upgrade Your current firmware version is 1.2.24 Latest available firmware version is 1.2.10

Note that something is wrong here, as current version is newer than available.

— Reply to this email directly or view it on GitHubhttps://github.com/Spondoolies-Tech/minepeon/issues/30#issuecomment-39662514 .