ElectricMotorcycleForum.com

  • November 25, 2024, 06:29:24 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Electric Motorcycle Forum is live!

Pages: 1 ... 3 4 [5] 6 7 8

Author Topic: SR/F App (NextGen) - API  (Read 10826 times)

azymuth

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #60 on: December 16, 2019, 08:28:42 PM »

Hi everyone,

I have exactly the same problem.
I had successfully registered an account for the first time. But since I changed my phone, it's impossible while I'm well connected to the bike in Bluetooth  >:(

However, my account works fine with this awesome ZeroNG app  ;)
« Last Edit: December 16, 2019, 08:33:33 PM by azymuth »
Logged
Zero SR/F Red Premium
-- France --

Hans2183

  • Sr. Member
  • ****
  • Posts: 468
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #61 on: December 16, 2019, 08:33:41 PM »

Changing phone shouldn't be an issue. I've swapped devices for testing. All you need is to remember your username and password and use these to log on to the app. That will work.

It's strange that the app doesn't have a "change password" option whatsoever. All you can do is register or login and if you're not connected it will prompt you to connect to the bike first. I had no clue what the next steps are if you don't have credentials and a used bike but from what I understand here you have to contact Zero directly.
Logged
2021 Energica SS9+ 21.5kWh
--- Belgium ---

azymuth

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #62 on: December 16, 2019, 08:51:07 PM »

My username and password are Ok since all is good with your app "ZeroNG" ;) And I'm connected to my bike, the "blue" Bluetooth icon is ON ! (my bike is a new one)

Thank you Hans2183 for your app ;)
Logged
Zero SR/F Red Premium
-- France --

Hans2183

  • Sr. Member
  • ****
  • Posts: 468
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #63 on: December 16, 2019, 08:57:42 PM »

my pleasure, this community discovered it was possible to begin with.

But now I struggle to understand your situation. So you have a new bike? with your previous phone you could register for an account using that bike? And now with a new phone you can't log in to the app connecting it to that same bike? Or did the bike also change? 

edit: Can't really test it right now since my bike is back at Zero to get it fixed. But I'm pretty sure I had both my Android and an iOS test device connected to the same bike without issues. Login and out is possible from my same iOS daily device without connection but that's probably just because it already has all the preferences required.

Make sure you have the login view and not the register view. For Android you can toggle that in the top right corner. 

« Last Edit: December 16, 2019, 09:04:46 PM by Hans2183 »
Logged
2021 Energica SS9+ 21.5kWh
--- Belgium ---

azymuth

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #64 on: December 16, 2019, 09:29:50 PM »

I never noticed that you could toggle "login" and "register" in the top right corner  :-[

I have just managed to connect  :) I was probably in "register" mode !

Thank you so much Hans !
Logged
Zero SR/F Red Premium
-- France --

Hans2183

  • Sr. Member
  • ****
  • Posts: 468
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #65 on: December 16, 2019, 09:31:34 PM »

Glad it worked out  8). The app has some strange logic here and there.

The others have a real issue I think since they have a bike (VIN) that was linked to another account before. For that I can understand Zero has to do this manually to prevent theft.
Logged
2021 Energica SS9+ 21.5kWh
--- Belgium ---

electrik

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #66 on: December 16, 2019, 09:38:01 PM »

Thanks guys. I suspected the same. Waiting for zero's response.
They could do better with the app though. The error messages don't give much information plus login should be default, not register.
Logged

ben.m

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #67 on: December 16, 2019, 10:59:45 PM »

Just updated the app, i went to the history thing in location tab. (iOS)
I can't have something working with more than a few days, is it normal ?
If i put a few months away to see all history, not working...
For the last days it's great !

EDIT :
I was wrong, i just realize that every day you select add the daily trace to the map.
I found that the activation on my bike tracking system was done a few days after i had it, that's why i couldn't sync the zero app with the bike.
I had the bike on August 3 and the first point in the middle of nowhere is on August 10
« Last Edit: December 16, 2019, 11:11:56 PM by ben.m »
Logged

Hans2183

  • Sr. Member
  • ****
  • Posts: 468
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #68 on: December 17, 2019, 01:22:28 PM »

Indeed this first implementation just allows selection for a single day and then it will fetch that information and plot it on the map. When you change date the previously plotted route remains so you could select multiple days to combine information.

In future updates I'll probably work on some options like having it select a full month at once. But I want to get the notifications implemented first since those in the official app are... nuts.
Logged
2021 Energica SS9+ 21.5kWh
--- Belgium ---

electrik

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #69 on: December 18, 2019, 03:55:23 AM »

Called Zero EU support this morning quoting my VIN number and he confirmed that it was already registered to another account. He put a request to delete from the database.
I tried registering again after 4-5 hours and I could register and check status remotely.

I was expecting to have a longer call but <5 mins with CS is a big ++

Secondly, I noticed the "deregister" option in the account section. I guess that will deregister VIN from account, if anyone is looking. I haven't tried it myself.
Logged

BrianTRice@gmail.com

  • Unofficial Zero Manual Editor
  • Hero Member
  • *****
  • Posts: 4014
  • Nerdy Adventurer
    • View Profile
    • Personal site
Re: SR/F App (NextGen) - API
« Reply #70 on: December 22, 2019, 06:50:17 AM »

This is now referenced in a stub article on the unofficial manual: https://zeromanual.com/wiki/Gen3/Cloud_Data_Service
Logged
Current: 2020 DSR, 2012 Suzuki V-Strom
Former: 2016 DSR, 2013 DS

Hans2183

  • Sr. Member
  • ****
  • Posts: 468
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #71 on: January 06, 2020, 04:09:19 PM »

This is an OS project for Tesla, just for inspiration https://github.com/adriankumpf/teslamate
Logged
2021 Energica SS9+ 21.5kWh
--- Belgium ---

BrianTRice@gmail.com

  • Unofficial Zero Manual Editor
  • Hero Member
  • *****
  • Posts: 4014
  • Nerdy Adventurer
    • View Profile
    • Personal site
Re: SR/F App (NextGen) - API
« Reply #72 on: January 07, 2020, 03:40:23 AM »

This is an OS project for Tesla, just for inspiration https://github.com/adriankumpf/teslamate

Oh, that is inspiring, thank you. Grafana is an interesting choice for driving dashboard displays; I'll look into it to see whether I can put something sensible together for a Zero.
Logged
Current: 2020 DSR, 2012 Suzuki V-Strom
Former: 2016 DSR, 2013 DS

i550

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #73 on: April 07, 2020, 06:45:25 AM »

I’ve been trying to utilize the quarantine time for more than sitting around and decided to start a web app project for the cloud data on my zero bike, by building on the api discovery from this thread.  I’ve been working on both the code and the drawings off and on, over the last couple weeks.  Besides having to finish the images (please don’t judge the draft SRF image, still a work in progress),

I’m running into dead ends finding any documentation on the api.  As well as issues with contacting the servers in modern restful manner.  I was shocked to see that passwords are sent in the clear. Then, also surprised that the site has a poorly defined server configuration for access to data, that restricts async calls from the browser, due to CORS being setup in an old fashioned manner.   Which means I won’t be able to make standard fetch calls, but will have to hack a script to download the JSON file locally periodically until they change their servers permissions.

It would also be great to have access to the rest of the data on the bike that is also available via the app over bluetooth.  Like ride mode and other things.  For now I’ve gotten the data that is available mostly parsed and converted to imperial, except for the fields in yellow. 

Does anyone have an idea what these are and the potential values for them could be?

« Last Edit: April 08, 2020, 01:19:37 AM by i550 »
Logged
First and current Zero: Red Premium SR/F

remmie

  • Sr. Member
  • ****
  • Posts: 318
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #74 on: April 07, 2020, 01:16:05 PM »

Nice work i550 !

As for the yellow items.
* Unit type is 5 with me as well, dont know what it means though, it could be related to the bike (SR/F) or to the GPS/GSM unit or maybe even to the use of KM or Miles. Mine is in km and the milage figure is correct for km which would imply that unit type is not for km/miles
* Unit model is 6 with me as well, if it would relate to the bike : mine's a SR/F
* Response is also 0 with mine. no idea what it means
* Reason is also 2 with mine. no idea
* Logic state is 2 with mine instead of 1 in yours. Mine is keyed off?
* Analog has been 0.09 with mine always. It think it is an unused analog input. It is named analog1 instead of analog
* Color is 6 with mine instead of 5 in yours. I have a boardwalk red SR/F


There are also a couple of items in the JSON response that are not visible in your webpage (maybe on purpose?)
* driver, 0 in my case
* gps_valid, 0 in my case (sitting in the garage with a reinforced concrete ceiling
* shock, 0 in my case (which is a good thing :) )
* ignition, 0 in my case keyed off in the garage
* door, 0 in my case (figures, because it has no doors, LOL. Or is does the storage compartment have a door, or is that a lid, ;) )
* hood, 0 in my case
* volume, 0 in my case
* water_temp, "" in my case which makes sense
* oil_pressure, 0 in my case which also makes sense
* siren, 0 in my case (it has none)
* lock, 0 in my case
* int_lights, 0 in my case
* datetime_utc, 20200405201257
* datetime_actual, 20200407061530
* perimeter, "" in my case
* tipover, 0 in my case (which is good !)

Of those last batch I think only gps_valid, ignition, shock and tipover would be helpfull for your page, maybe make a fourth page with the all the unknown/unused values, just for info if someone sees a use for it.

Other than that : Great work

As far as accessing the data that Nextgen App has like riding modes etc, that information is only available via bluetooth, not through the web.

Logged
Current : Red Premium Zero SR/F (ordered May 25, delivered August 23 2019) with Rapid charger for 12kW charging
Former : White Zero SR 2018 ZF14.4 kWh (17.500 km)
Former : Black Zero SR 2014 ZF11.4 kWh (25.000 km)
SR's outfitted with Homemade "Supercharger" 6x eltek Flatpack S (12 kW)
Pages: 1 ... 3 4 [5] 6 7 8