Go to advanced search

by YitEarp
Fri Jun 21, 2019 3:29 pm
Forum: Other projects
Topic: How would i get all this to send to googlemaps and send back a link
Replies: 20
Views: 1588

Re: How would i get all this to send to googlemaps and send back a link

Have a look at this for if / else statements http://anh.cs.luc.edu/handsonPythonTutorial/ifstatements.html Copy the text, run it and play with them :) Thank You that put my brain into work and gave me the idea for the fix EDIT: I missed your code breakdown above that is something i will use in the ...
by YitEarp
Fri Jun 21, 2019 3:15 pm
Forum: Other projects
Topic: How would i get all this to send to googlemaps and send back a link
Replies: 20
Views: 1588

Re: How would i get all this to send to googlemaps and send back a link

Have a look at this for if / else statements http://anh.cs.luc.edu/handsonPythonTutorial/ifstatements.html Copy the text, run it and play with them :) Thank You that put my brain into work and gave me the idea for the fix while True: gps_fix = ser.readline().decode('ascii') gps_data = parse_gps(gps...
by YitEarp
Fri Jun 21, 2019 2:45 am
Forum: Other projects
Topic: How would i get all this to send to googlemaps and send back a link
Replies: 20
Views: 1588

Re: How would i get all this to send to googlemaps and send back a link

Sadly that didn't work I've been trying to learn as much as i can without throwing code in and hoping for the best but these conditional statements confuse the heck out of me. I get this error Traceback (most recent call last): File "/tmp/tmp/pycharm_project_812/gps.py", line 41, in <module> if gps_...
by YitEarp
Fri Jun 21, 2019 2:45 am
Forum: Other projects
Topic: How would i get all this to send to googlemaps and send back a link
Replies: 20
Views: 1588

Re: How would i get all this to send to googlemaps and send back a link

Sadly that didn't work I've been trying to learn as much as i can without throwing code in and hoping for the best but these conditional statements confuse the heck out of me. I get this error Traceback (most recent call last): File "/tmp/tmp/pycharm_project_812/gps.py", line 41, in <module> if gps_...
by YitEarp
Thu Jun 20, 2019 5:23 pm
Forum: Other projects
Topic: How would i get all this to send to googlemaps and send back a link
Replies: 20
Views: 1588

Re: How would i get all this to send to googlemaps and send back a link

My bad - I just looked at the break and not the code before :oops: Try: def parse_gps(incoming_data): if incoming_data.find("GGA") > 0: data = pynmea2.parse(incoming_data) # Debug prints # print("Timestamp: %s // Lat: %s // Lon: %s // Satellites: %s " % (data.timestamp, data.latitude, # data.longit...
by YitEarp
Thu Jun 20, 2019 4:29 pm
Forum: Other projects
Topic: How would i get all this to send to googlemaps and send back a link
Replies: 20
Views: 1588

Re: How would i get all this to send to googlemaps and send back a link

You need to indent the break beyond the IF: while True: gps_fix = ser.readline().decode('ascii') parse_gps(gps_fix) d = data.num_sats if d > 7: break That is what I thought and have previously tried however I can’t set d to the variable I want as it doesn’t know what data.num_sats is. I know that i...
by YitEarp
Thu Jun 20, 2019 1:43 pm
Forum: Other projects
Topic: How would i get all this to send to googlemaps and send back a link
Replies: 20
Views: 1588

Re: How would i get all this to send to googlemaps and send back a link

def parse_gps(incoming_data): if incoming_data.find("GGA") > 0: data = pynmea2.parse(incoming_data) # print("Timestamp: %s // Lat: %s // Lon: %s // Satellites: %s " % (data.timestamp, data.latitude, # data.longitude, data.num_sats)) return data # Debug #print("Satellites: %s " % data.num_sats) whil...
by YitEarp
Tue Jun 04, 2019 11:22 am
Forum: Beginners
Topic: WiFi - Hot Spot Access
Replies: 6
Views: 410

Re: WiFi - Hot Spot Access

@YitEarp Thank you, I had not seen that article before. Come to think of it, I am not sure though how to access the Pi Headless, although I hope I can still use VNC. Yeah you can do it via VNC all you need is terminal. However i would recommend using the GUI straight from HDMI of the RasPi if you h...
by YitEarp
Mon Jun 03, 2019 10:57 am
Forum: Beginners
Topic: WiFi - Hot Spot Access
Replies: 6
Views: 410

Re: WiFi - Hot Spot Access

Thank you. That is exactly what I was hoping for. Super easy to do too https://thepi.io/how-to-use-your-raspberry-pi-as-a-wireless-access-point/ Beware though if you use something like PiHole it kills the AP i think its to do with taking over dnsmasq never really looked into it but after awhile i n...
by YitEarp
Sun Jun 02, 2019 11:00 am
Forum: HATs and other add-ons
Topic: Anyone familiar with the Waveshare GSM/Bluetooth Hat?
Replies: 29
Views: 17521

Re: Anyone familiar with the Waveshare GSM/Bluetooth Hat?

I'm looking at these waveshare rpi hats. As a newbie, i'm wondering if they can be powered through the hat-connection, or if they generally require external power? They can be powered by the pi GPio pins. Either use a header or solder the wires yourself. Look for a pi with a pre soldered header mak...
by YitEarp
Fri May 31, 2019 11:18 pm
Forum: Other projects
Topic: How would i get all this to send to googlemaps and send back a link
Replies: 20
Views: 1588

Re: How would i get all this to send to googlemaps and send back a link

Very messy but functional just need to know how i can call a function to grab the string from lat and long for pasting into googlemaps link. #!/usr/bin/python import serial, time, pynmea2 # Enable Serial Communication ser = serial.Serial("/dev/ttyS0", baudrate=9600, timeout=1) # Transmitting AT Comm...
by YitEarp
Thu May 30, 2019 9:20 pm
Forum: Other projects
Topic: How would i get all this to send to googlemaps and send back a link
Replies: 20
Views: 1588

Re: How would i get all this to send to googlemaps and send back a link

Please do not take this the wrong way but you may do best to spend an hour or two looking at an intro to python. The first eight of these https://m.youtube.com/playlist?list=PL-osiE80TeTskrapNbzXhwoFUiLCjGgY7 will help significantly to understand the basics. Your code already shows that you have th...
by YitEarp
Thu May 30, 2019 8:58 pm
Forum: Other projects
Topic: How would i get all this to send to googlemaps and send back a link
Replies: 20
Views: 1588

Re: How would i get all this to send to googlemaps and send back a link

You could spin the map routine off into its own thread or use the multiprocessing functions in python. That would let you continue with the serial read. Unless you need to have the pin permanently on the map you can bypass the whole Google API and use the location as part of the URL in this format:...
by YitEarp
Thu May 30, 2019 7:33 pm
Forum: Other projects
Topic: How would i get all this to send to googlemaps and send back a link
Replies: 20
Views: 1588

How would i get all this to send to googlemaps and send back a link

So ongoing from my other threads hope there isn't too many! The GPS part is working fine and parsing through pynmea module and i get a location fix which is very accurate However now i want to be able to send this location data to googlemaps and have it pull that data and send me an SMS with the lin...
by YitEarp
Wed May 29, 2019 6:09 pm
Forum: Other projects
Topic: Help me complete this python GPS code for sending SMS with googlemaps data
Replies: 6
Views: 579

Re: Help me complete this python GPS code for sending SMS with googlemaps data

This is my code at the moment its a little bit messy whilst i am still a "Beginner" with python i am only just learning the basics this is just hashed together i found on the internet What i would really like to do is parse the data and append it to googlemaps then send an SMS i've seen the code for...
by YitEarp
Wed May 29, 2019 2:02 pm
Forum: Other projects
Topic: Help me complete this python GPS code for sending SMS with googlemaps data
Replies: 6
Views: 579

Re: Help me complete this python GPS code for sending SMS with googlemaps data

If you change your if to a while then that part of the code will loop until the output is less than one, then it will execute the rest of your program. Thanks i tried that but it still carries on when there is no GPS data to read from "Location Not Fix" i'll keep going with these python courses and...
by YitEarp
Tue May 28, 2019 7:59 pm
Forum: Other projects
Topic: Help me complete this python GPS code for sending SMS with googlemaps data
Replies: 6
Views: 579

Help me complete this python GPS code for sending SMS with googlemaps data

I could use some info for how to get out of the break statement and continue. I am super new to python and i ripped and tweaked this code as best i could from various sources and i am still putting in the work to learn. Just need to figure a way to append the location data to googlemaps and then sen...
by YitEarp
Tue May 28, 2019 3:36 pm
Forum: Other projects
Topic: Help adding pynmea to parse data in code
Replies: 19
Views: 1615

Re: Help adding pynmea to parse data in code

Try print "Timestamp: %s -- Lat: %s %s -- Lon: %s %s " % (data.timestamp, data.latitude, data.lat_dir, data.longitude, data.lon_dir) The East/West or North/South direction stays the same. Depending where you live, you don't need them where I live, near the East/West changeover, I need to know. Of t...
by YitEarp
Mon May 27, 2019 7:28 pm
Forum: Other projects
Topic: Help adding pynmea to parse data in code
Replies: 19
Views: 1615

Re: Help adding pynmea to parse data in code

Traceback (most recent call last): File "/tmp/tmp/pycharm_project_357/gps.py", line 46, in <module> parseGPS(str) File "/tmp/tmp/pycharm_project_357/gps.py", line 41, in parseGPS print "Timestamp: %s -- Latitude: %s %s -- Longitude: %s %s " % (data.timestamp,data.latitude,data.latitude_dir,data.long...
by YitEarp
Mon May 27, 2019 5:02 pm
Forum: Other projects
Topic: Help adding pynmea to parse data in code
Replies: 19
Views: 1615

Re: Help adding pynmea to parse data in code

the co-ordinate will be correct, just not split up and maybe in the wrong format. try msg.latitude and msg.longitude for a different format. Came across that problem myself, you're either miles away or 40 miles in the wrong place. You are grabbing the "GGA" sentence not the "RMC" sentence. For what...
by YitEarp
Mon May 27, 2019 3:34 pm
Forum: Other projects
Topic: Help adding pynmea to parse data in code
Replies: 19
Views: 1615

Re: Help adding pynmea to parse data in code

I have just started learning python so i have guessed that because the while True: statement is a loop? What would i use to end? would it be something like if str > 1:? Also am not sure it is capturing how i want as this doesn't look like an GNMRC sentence as co-ords lead to nothing (changed values ...
by YitEarp
Mon May 27, 2019 3:00 pm
Forum: Other projects
Topic: Help adding pynmea to parse data in code
Replies: 19
Views: 1615

Re: Help adding pynmea to parse data in code

Well i figured it out from the link you provided! Thank You. Here is my code incase anybody else is searching out there. Now i just want to be able to trigger this via a call or SMS and have it append to googlemaps and send back its location via SMS #!/usr/bin/python import serial import time import...
by YitEarp
Mon May 27, 2019 2:58 pm
Forum: Other projects
Topic: GPS/GRPS tracking help
Replies: 14
Views: 1259

Re: GPS/GRPS tracking help

In the hope this may help somebody i mananged to get things working and output to pynmea to parse correctly this is my code Now i just want to figure out how to append it to googlemaps and trigger it by a call or sms to send the location #!/usr/bin/python import serial import time import pynmea2 #En...
by YitEarp
Sun May 26, 2019 10:31 am
Forum: Other projects
Topic: Help adding pynmea to parse data in code
Replies: 19
Views: 1615

Re: Help adding pynmea to parse data in code

You might need to start again with setup... But does this help at all? https://www.zetecinside.com/xr2/rpi_project2.shtml I have used many guides that above is one of them i made some headway with it but got lost at the pynmea part since he then delved into sensors for something else :) Proving to ...
by YitEarp
Sun May 26, 2019 10:07 am
Forum: Other projects
Topic: Help adding pynmea to parse data in code
Replies: 19
Views: 1615

Re: Help adding pynmea to parse data in code

I think my problem is its not registering fully on the network since i am trying to use its GPRS function? I am looking at how to set its APN and password for the T-Mobile network its proving quite tricky when a password is involved. i can set APN no problem AT+SAPBR=3,1,"APN","ee secure" OK I think...

Go to advanced search