ElectricMotorcycleForum.com

  • September 02, 2026, 01:47:51 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Electric Motorcycle Forum is live!

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - I973

Pages: [1] 2
1
Zero Motorcycles Forum | 2013+ / Re: Android-App 'ZeroSpy'
« on: April 01, 2021, 11:37:07 PM »
I don't know what trigger I would have to setup on IFTTT for me to "connect" it with your ZeroSpy app.

You can use the "Webhooks" service as the "if" part. You can then find the URL to call when you navigate to "My services -> Webhooks -> Documentation". You will find something like this: https://maker.ifttt.com/trigger/{event}/with/key/abcdefghijklmnopqrstuvwxyz. This is the URL you should setup in ZeroSpy.
Hope this helps :)

Cheers

2
Zero Motorcycles Forum | 2013+ / Re: Android-App 'ZeroSpy'
« on: March 31, 2021, 12:20:00 PM »
I was wondering is there a way to get your app working with IFTTT?

Hi herculeesjr,
you can define triggers, that means, you can configure HTTP GET or POST requests. This should work with IFTTT. You have to define them on your Nexus 5, "Bike" page, bike icon at the top of the app. Let me know if you need more help on this.
Boris

3
Zero Motorcycles Forum | 2013+ / Re: Android-App 'ZeroSpy'
« on: December 20, 2019, 01:03:34 PM »
It sounds like you are trying to re-pair it. That should not be necessary, if I am remembering correctly.

Correct, the blinking bluetooth symbol is only necessary for pairing. Once paired, connect should work without pairing mode...

4
Zero Motorcycles Forum | 2013+ / Re: Android-App 'ZeroSpy'
« on: December 19, 2019, 07:04:05 PM »
Boris,

Thanks for writing this application. It looks promising. Unfortunately, I cannot get it to connect to my 2016 Zero SR.

I have no problem connecting to the official Zero app through bluetooth; however, I cannot get the bluetooth connection to work with ZeroSpy.

The bluetooth is turned on by switching the motorcycle on then pressing the mode button until the bluetooth symbol is blinking. Am I missing something?

Thanks

Hi dmyers2k,

Could you please send a debug log? Reproduce your problem, then select 'Send Debug Log' from the menu. You will find my email address in the app's about dialog.

Thanks!

5
Zero Motorcycles Forum | 2013+ / Re: Android-App 'ZeroSpy'
« on: December 19, 2019, 07:00:59 PM »
@I973 what kind of infrastructure is required for zerospy? I imagine it as a lambda backed API gateway with Dynamo table for the user/device data (in AWS speak). I'm just kind of curious what this app is run on.

Hi staples,

sorry for the late answer, I didn't get any notifications about new entries here... strange...

I use Google techniques: Firebase Messaging, Firebase Database and Cloud Functions.

Boris

6
Zero Motorcycles Forum | 2013+ / Re: Android-App 'ZeroSpy'
« on: September 28, 2019, 12:23:51 PM »
Very nice! Looks good  8)

7
Zero Motorcycles Forum | 2013+ / Re: Android-App 'ZeroSpy'
« on: June 25, 2019, 01:18:33 AM »
There's a free IoT platform called Thingspeak where you can send you data to (250k packets per year for free i think), and a bunch of free mobile apps with widgets that can display it.

Thanks for this recommendation! I played a little bit with ThingSpeak and you can already use it with my current app version: I added a trigger which sends the SoC every percent. I made this channel public (I am currently charging, startet at 50%): https://thingspeak.com/channels/808822

So I will probably add some more trigger features:
- make more data available for sending (charging rate, current, temp, and so on...)
- more events that raise a trigger

Nice  8)

8
Zero Motorcycles Forum | 2013+ / Re: Android-App 'ZeroSpy'
« on: June 24, 2019, 05:48:28 PM »
@I973:  Did you publish your code somewhere, like GitHub ? I would be very much interested.

Hi tabarnakos,

No, the code is not published. Which part are you interested in? Probably the communication with the bike, I guess!?

10
Zero Motorcycles Forum | 2013+ / Re: Android-App 'ZeroSpy'
« on: June 10, 2019, 11:22:00 PM »
Hello Boris,

I was able to connect your app with my Zero SR '15 :). I have a Bluetooth switch and WIFI switch. I am not sure how to use the trigger. Can you give me some quick "How to" example?

Thanks,
Giacomo

Hi Giacomo,

Which network switch do you have?

What you can do with these triggers currently is basically calling some URL you could also enter in the address line of a browser. I have a simple switch which I can turn on or off by calling this URL: 'http://192.168.1.83/control.html?STATE=1' or 'http://192.168.1.83/control.html?STATE=0'. The URL to call depends of course on what you want to do or on what switch you have.

I attached a screenshot of my trigger definition, please have a look. What happens is:
- Wait until 75% SoC
- Then wait 3 minutes
- Then call the specified URL
- Then disable the trigger

Hope this helps. Let me know if you need more assistance!

Regards,
Boris


11
Zero Motorcycles Forum | 2013+ / Re: Android-App 'ZeroSpy'
« on: June 09, 2019, 11:31:14 AM »
Brian,

would do you mean exactly? Things are solved enough I think. I know how the communication and protocols work. The app works fine so far. And if there are some model dependent issues,  this should be solvable too. I'm quite happy with the state of the app until now ;)

Have a nice weekend!

12
Zero Motorcycles Forum | 2013+ / Re: Android-App 'ZeroSpy'
« on: June 09, 2019, 02:43:47 AM »
Got it. How many bikes have you tested it with?

I have tested it with my SR 2018, same protocol version as 2017 and 2019. And I know one guy with an SR 2015, there was one problem I could fix. No other negative feedback until now...

13
Zero Motorcycles Forum | 2013+ / Re: Android-App 'ZeroSpy'
« on: June 08, 2019, 10:34:58 AM »
Thanks @talon

Got it; that's what I was wondering. No one seems to have reverse-engineered that part, and, honestly, it seems like a grey area to re-use that library. I don't think they'll mind as long as your app behaves well (for example, try not to poll for data too frequently).

Just to clearify: those libraries are not part of my app now. I just needed to call them once to get the packets including the checksum, I did not try to find out which algorithm they use for the checksum. Probably crc32 or so...

14
Zero Motorcycles Forum | 2013+ / Re: Android-App 'ZeroSpy'
« on: June 08, 2019, 02:47:20 AM »
Thanks for creating this, Boris. I look forward to trying it out.

Can it run on Android tablets as well? I have an old Nexus 7 with GSM slot...

Should be available for tablets in the PlayStore, please give it a try.Thanks!

15
Zero Motorcycles Forum | 2013+ / Re: Android-App 'ZeroSpy'
« on: June 08, 2019, 02:35:57 AM »
I see. There was one more thing: The Zero app includes some native C libraries with functions like 'GetBatteryPaket' which return the byte array one has to send via bluetooth. I used these native libraries in an own app, so I could call those functions to get the byte arrays I have to send to the bike to get the information I want.

Pages: [1] 2