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 - SBCC

Pages: [1] 2 3 ... 11
1
Installation issues / Re: 12.04 Web Admin Firewall
« on: February 25, 2016, 06:18:26 pm »
Ok. I noticed a change in the layout and I thought I might have been doing something wrong.

Thanks again for all your work!

2
Installation issues / 12.04 Web Admin Firewall
« on: February 25, 2016, 05:40:47 pm »
Hello,

I recently did a fresh install of 12.04 and cannot seem to get the web admin to make any changes to the firewall. It looks like this might have been an issue in the past but looked like it was resolved. Am I doing something wrong?

Thanks

Jim

3
Installation issues / Re: Raspberry pi 2 installation
« on: September 21, 2015, 07:18:19 pm »
Let me know how I can help. I am trying wheezy now on the RPI 2. I'll let you know what I see there if anything.

Thanks again!!!

4
Installation issues / Re: Raspberry pi 2 installation
« on: September 21, 2015, 02:32:38 pm »
Hi Jason

Thanks for all your hard work!!!

Using RPI 2 Jessie, I get an error for a GSD device with a simple routine as:
Code: [Select]
375
def log(line)
# This function logs a line to the log file of the device
log = File.open("/var/log/pluto/" + device_.devid_.to_s + "_Generic_Serial_Device.log", "a")
log.puts Time.now.to_s + " (Ruby script):" + line.to_s
log.close
end


def time_check()
now = Time.new

if ((@last_check + 15) < now)
log(Time.now)
@last_check=Time.now
end


end

355
@last_check = Time.now

351
time_check()

The error comes after running anywhere from 1 minute to 2 hours and not consistent. I double checked this with a separate RPI 2:
Code: [Select]
2015-09-21 12:20:10 +0000 (Ruby script):2015-09-21 12:20:10 +0000
2015-09-21 12:20:26 +0000 (Ruby script):2015-09-21 12:20:26 +0000
01 09/21/15 12:20:28.313 A CRITICAL ERROR HAS OCCURED (CHECK YOUR RUBY CODE) <0x740ff450>
Return code: 1
I noticed that the Ruby version on the RPI is not the same as the core. Not sure if that matters.

Thanks

Jim

5
Developers / Re: Developing a Weather Plugin, videos
« on: June 08, 2015, 01:38:35 pm »
i still get access diened for noaa..
Hi darkwizard864 

They are requiring a user agent in the curl call. I have that update. Give me a little bit and I will post that here.

Thanks

6
Developers / Re: Developing a Weather Plugin, videos
« on: March 29, 2015, 06:22:01 pm »
Hi Carlos

I made some changes to the NOAA class. Added the Radar to the wrap and changes the radar image sequence to oldest 1st and limited it to just 3.

Great job with this!!

I will add the night icons to NOAA as well once they are included.

Here is the link
https://www.dropbox.com/sh/o9frlgoybvv1twe/AADffJefSW5pd6KNV87LOoYsa?dl=0

Thanks for all your effort!

Jim

7
Developers / Re: Developing a Weather Plugin, videos
« on: March 22, 2015, 02:23:10 pm »
I agree with Carlos. This will add a better visual to night time weather. Along that thought the more icons the better just not sure where the limit should be for that and why.

Thanks for all the hard work Carlos!

I'm having an issue with testing for WWO as they are having server issues on the development side and cannot issue API keys. Other than that it seems to be running very stable for the last week or so. I see no reason why WWO class should not run the same.

I need to make a "feels like" function as Open Weather Map does not offer that. I was thinking of leaving that in the Weather class so any other weather API class can make use of it if needed.

Also thinking about radar. NOAA uses multiple jpg images that overlay. Would it be best to have the Weather class except multiple images and create 1 from that?

Thanks

Jim

8
Developers / Re: Developing a Weather Plugin, videos
« on: March 18, 2015, 12:14:50 am »
Hi Guys

Sorry I've been distracted.

Carlos I did not have a chance to look at your code but I made some substantial changes to the code. It dose have an Open Weather Map option now.

I removed the mutexes and used the pluto mutexes... though I'm not completely sure how they work. There is a lot of code to look at there. I have 2 classes. 1 for NOAA and one for OWM (Open Weather Map). I will look at your code now Carlos and see how we can merge the two. Thanks for all your help!!

Here is the link to my code;

https://www.dropbox.com/sh/45peimybwaxyg74/AADVuE1L9x07A_5uif4yhSsqa?dl=0

Jim


9
Developers / Re: Developing a Weather Plugin, videos
« on: February 21, 2015, 12:13:43 am »
Open Weather Map allowed us to use their API for free without adding their name on the orbiter. They only requested that we mention them on the website and any wiki page for the weather screen. If this is OK and can be done I will go ahead and add that API as it works for global weather.

10
Developers / Re: Developing a Weather Plugin, videos
« on: February 19, 2015, 01:12:19 pm »
Hi

Below is a link to the current Weather project folder. This depends on libcurl and libjsoncpp. I still want to add some notes and radar is still not implemented but otherwise works fine for NOAA only. I'm still not sure how the pluto_mutexes work and if they are working but it's been running for a day and no crashes yet. In script in the device web admin page Configuration Data I've added a timer to affect the data update time as "timer:'min'". So "timer:10" would get the web data every 10 minutes. This defaults to 5 minutes. I've added defaults for everything. Feedback is appreciated.

https://www.dropbox.com/sh/nd2jtf4eg2jl8pw/AAB9-De03ogqI3AqRbw4VNIza?dl=0

Thanks

Jim

11
Developers / Re: Developing a Weather Plugin, videos
« on: February 17, 2015, 11:57:21 pm »
Hi Carlos

I am making some changes. I'm trying to add some mutexes and I'm working through how LMCE handles those. I need one for curl and one for the the message sender. Give me a little bit.

Thanks for helping

Jim

12
Developers / Re: Developing a Weather Plugin, videos
« on: February 16, 2015, 09:50:41 pm »
Hi

I have a working device in C++ for NOAA only right now. Other APIs can be added as well and I will probalby start looking into others. It does use curl and jsoncpp. I made use of the Configuration Script data already on the template. Uses are "API:??,lat:??,lon:??,units:??,lang:??". Right now only "API:NOAA" works for API. "units:0" is imperial of deg F. "units:1" is metric but right now the text add "F" to the unit. I will fix that. "lang:english" is english, not sure about others but worth trying whatever. I am still testing but if anyone is interested I could get you the code or binary.

Is there any way to add a "Info By" area to the orbiter so APIs that require that can be used?

Thanks

Jim
 

13
Developers / Re: Developing a Weather Plugin, videos
« on: February 13, 2015, 01:23:28 am »
Hi Jason

Right now I am creating the methods to load the data. I suppose we could have the user select a polling interval. Locations I was getting from "SELECT `Zip` FROM `Installation`" but I'm thinking that should be confirmed or having that as default but then can be changed.

Methods can be selected with a user selection like
Code: [Select]
if(NOAA) {
 Get_NOAA_DATA();
} else...

14
Developers / Re: Developing a Weather Plugin, videos
« on: February 12, 2015, 10:22:20 pm »
Hi J

I am putting together a NOAA addition to your Weather device. I can also do a Open World wide something version as well with maybe an option to select the version. The problem with most of the good, free APIs is they want their logo showing. Any suggestions for that?  I know it is selfish but for the USA the NOAA data is the best so I think having options is looking like the way to go. Thoughts there?

I am almost done with the code and will send it to you if that's ok?

Thanks

Jim

15
Developers / Re: Developing a Weather Plugin, videos
« on: February 11, 2015, 05:54:06 pm »
Sorry J didn't see your post. I'm not sure I could do multiple data sources as it may be beyond me. Each service references data differently.

Pages: [1] 2 3 ... 11