[SOLVED] Weather location issue

Appealling though the warm weather would be right now as I sit here defrosting, I’ll pass on Somalia :wink:

Good thinking re the decimals vs degrees. I also wondered whether it was a positive / negative thing as well, but none of those showed a pattern.

Don’t suppose I could ask you what your lat and long are showing?

Best, K.

I would , but I don’t have a var/temp/mycroft_web_config_cache.json ( no /var/temp directory at all!)
( I am supposed to be working too! )

No worries, try /var/tmp/mycroft_web_config_cache.json - fat fingers here.
And no worries, no hurry.

So The lat/long co-ordinates that I have in my json file puts me smack bang in the middle of Heidelberg in Germany, LOL! (remember that this is a newly installed “clean” image of Picroft)
Just a

location
city
created_at 1490132691053
code “Winchester”
name “Winchester”
updated_at 1490132691053
state
created_at 1486129437940
code “England”
name “England”
updated_at 1486129437940
country
code “GB”
name “United Kingdom”
updated_at 1486088331527
created_at 1486088331527
coordinate
longitude 8.672434
latitude 49.398752

Looks the same as yours! If I invert mine I get Somalia, but yours are Heidelberg - I must have mixed up my lat and long and made it long/lat instead. Our co-ordinates are the same!!!

cool!! I will buy you a drink, as soon as I find you… you must be around here _somewhere _ :slight_smile:

Ha! It’s too cold here for a drink other than a hot cup of delicious coffee at the moment :wink: It’s certainly not Somalia weather!!

OK, my colleague @matheus-mycroft has worked some $MAGIC in the backend, however we think the fix might be that you need to reboot your Device, @a_user. If you reboot does your Weather come good?

Best, Kathy

Well, that $MAGIC has fixed the weather ( if only it could make BETTER weather! )
BUT now I have rebooted and my PS3 Mic has stopped working again … Still a CLEAN PiCroft build with only coin-toss skill as an extra skill installed :frowning:

Nope nothing will bring the mic back again :frowning:
(Edit) So - shutting down the Pi, then plugging the PS3 mic into a FRESH port on the Windows10PC that then forced it to “install drivers” , unplugging it again and then putting it back into the Pi, and firing it up again brough the mic back to like ( that is the same sequence that woke it up last time too, but I ALSO re-imaged the SD card as well)
Mate… this is driving me slowly crazy! :confounded:

Totally understand your frustration with the Pi3 microphone. Are you OK if I mark this thread as solved, and we can start another thread to work through the Raspberry Pi issues?

Yep :slight_smile:
plus the rest of the characters that i need to make a post

I believe I read somewhere you are a software engineer (or something similar in the past).

Perhaps my way of running the pulseadio deamon system wide service, helps you in not keep loosing your microphone?

Have a look at my “journey” thread. The Mycroft / pulseadio section is perhaps also the solution for you.

1 Like

Thanks - I used to do software QA about 11 years ago, so I am willing to “kludge” things (with a backup plan!)
I have read some of your blog ( 3 parts I think) - I will have a closer look :slight_smile:

Check out part-4, I pushed online yesterday. Grab the pieces you need (or all). Most interesting is the pulseaudio / mycroft configuration section.

You then no longer running pulseaudio as the user, but as system service and connect over tcp-localhost.

Perhaps that also solves you loosing the mic “crap”

1 Like

@KathyReid, I did a bit of checking on my location issue and discovered the following through triangulation.
“Hey Mycroft” How far is Ottawa, Ontario? A. 340.3 miles
How far is Chicago, Illinois? A. 719.5 miles
How far is Atlanta, Georga? A. 747.9 miles
After triangulating the distances I came up with NY City.
“Hey Mycroft”, How far is New York City? A. 0.0017 miles.
So there you have it, I am definitely not in NY City. When I ask mycroft where he is, the location is reported correctly Other issue is my default settings are Metric so answers should be reported in kilometres.
I am not sure what skill is executed when I ask these questions. If I know I could dig into it a bit as well.
Let me know if you need any logs to assist in debugging this.
Screenshot%20from%202018-06-21%2020-35-50

One more thing, I am pretty sure that wolframalpha is the fallback skill being executed here. If I ask the same questions on the wolframalpha website it uses some form of geolocation from my IP address to determine the distance. My thoughts are that somewhere during the TTS conversion using mimic the IP address wolframalpha is using is returning NY City as the geolocation. If the fallback skill is passed both the from and to locations wolframalpha correctly calculates the distances. I may try to dig into the fallback skill code if I have some time.

1 Like

Thanks for reporting this, @pcwii

What I think is happening here is that Wolfram Alpha is based in New York, and is giving directions based on it’s location. If I ask the questions you did;

  • How far is Ottawa, Ontario?
  • How far is Atlanta, Georgia?
  • How far is NYC?

I get exactly the same responses as you do.

@KathyReid,
If you ask how far is Ottawa, Ontario from “your location” the correct answer is provided.
We may just need to modify the wolframalfa fall back skill to append the location for queries like this.

1 Like

Good point. I will check it out.

1 Like