Color Coded Gauge Icons

2017
8
January

I now have color coded icons for the gauge stations on the front page map.
front_page_map_Gauges_red_first.jpg

There are the normal blue road cameras and green gauge stations. In addition to that there are some red gauge stations. The red ones are places where the Klamath Tribes in-stream claim is higher than the current flows. Currently I have the tribal claims for 7 reaches coded in. A lot of the claims do not line up with gauge stations and most of the gauge stations on the map are outside of where the Klamath Tribes effect things. More gauge stations have been added since I coded in the claims. As I get some time I will look up the new stations and see if they line up with any of the claims.

As a side note if a person would like other claims, inside or outside Klamath area mapped contact me and I would likely be game to add them to the map.

As normal a big thanks to mapsmarker.com for their icons and great tools to customize the icons.

Latitude Zero, Longitude Zero

2017
3
January

The map stopped working today. Turns out Washington state has activated a Silver Alert Advisory Plan. In doing so they included quote signs in places that I had not expected them and it broke my code. I have since updated everything so that quote signs are replaced by '& quot' They look the same, just does not break my javascript and it is what I should have done the first time.

As a side note, I am impressed with the idea of the Silver Alert. For those who have not seen one before.

lat_0_long_0.jpg

The only downside is that they did not set a valid lat and long. Well it is valid... It just does not have the effect they expected. They have set both lat and long to zero which puts the warning in the South Atlantic Ocean. I am not sure about you, but I rarely have cause to look down there.

I do hope they find what they are looking for and if I get some spare time during daylight hours I will give someone up there a call and point out the effect of zero lat and zero long.

The text of the Alert:

"Silver Alert on at beginning at 10:40 pm on January 2, 2017 until further notice. This is an activation of the Washington statewide Silver Alert Advisory Plan in response to the report of a missing and endangered person. The Washington State Patrol is asking for the public"s assistance, in locating the following vehicle, Orange, 2005 Ford Escape, Washington state license number: AHJ9831. If you have any information about this vehicle, please call 911 immediately. "

The Return of the Blog!

2016
17
December

It has been a year since I last noted an update to the blog.

What have I been doing? I have spent a lot of time helping a friend with a webstore based on wordpress. I still do not like using wordpress for my own projects any more than I did before. On the plus side that project has given me a whole lot better skill set for working with css. I can now claim to fully understand specificity and how to use it to my advantage and I now have a much better idea how to dig into the workings on a project and style the project to do what I want it to. For example this blog now actually looks like it belongs here. Where as before it was obviously something added on.

Since I have last posted I have changed hosts! The new guys have the latest tech and are helpful. The old guys were also helpful, but hopelessly out of date with no plans on getting up to date. It was really starting to limit what I could do. When I moved from one host to the other I had to redo a lot of the code as the new host is few major versions of php, mysql and SQLite newer and not all of the code was compatible.

I have also acquired some better icons for the maps thanks to CCTV

I have added a few more data providers including ODWR and USGS. Both of whom are now providing me with their gauge data. I have tried to get reservoir from the BLM. They are willing and even have a nice interface for coders such as myself to use to access it. It is a fairly old program that uses REST calls. If you have no idea what a REST call is, you are not alone. Even after reading a few tutorials on them and using their examples I have not figured it out enough to get what I want. After a few nights of trying I have delayed my further attempts for a while.

website 2016-12-15.jpg

The front page has been redone to actually do something useful. Namely it has the weather, sunrise/set, moonrise/set and a small map with the road info for the area along with the gauge stations on the local rivers. Before I changed hosts you could log in and set your own location. Once I implement a forum I will enable that feature again.

The main thing that I have been working on keeping active is the gauge data vs tribal claims. This summer they were using something called a SIF specified instream flow. Depending on the location the SIF changed every month or in some places daily. The equations to figure them out were not simple. I asked a friend who went to school in the subject help me figure out the math and I coded up a script that would figure it out every month. It is noteworthy that for most of the summer there were only two groups doing the math, me and the Klamath Tribes. As far as I know our numbers were normally close to the same, but it was interesting that I was the only one double checking them for a while.

The last few years most of the people in the Upper Klamath area have been able to irrigate if they agreed to trade away their property rights. It is looking like that agreement is falling apart and starting this next spring the Klamath Tribes will shut off as much of the water in the Upper Klamath Basin as they can. In fact the water was shut off starting last month. If you are checking your calendar and wondering why they have called the water in November you are not alone.

Anyway, hopefully over the coming weeks I will get the water data in a better format that is easier for people and then I will see about writing up a paper on the history of the water in the area. I have been active in the water wars since the KBRA. Prior to that I have heard parts of the history here and there, but never in one place. I hope to be able to get it all in one place.

Do keep and eye on the site as there will be more updates in the near future!

Ag Industry News.

2015
22
December

I have put out requests to various ag publications for permission to use their feeds. So far everyone has been happy for me to use their news feeds as I only ask for a summery of the articals and then I point readers to their respective websites to read the full artical.

So far everyone that I have asked who has bothered to respond has been happy to hear from me. I started with Capital press. They provide regional news and do an OK job.

The next round of requests I sent out 3 requests and got one reply from beef. They do beef industry stuff. They do not post much, but they are interesting enough.

Today, I reached out to Drovers. They claim to be one of the longer running Magazines. I do not know about that. I do know we get 3 copies in the mail. They support beef check off and were very anti COOL. They post many times a day and have access to a lot of data about sales, imports, exports, beef butchered, ect.

I am on the look out for other sources of news. Have a suggestion? If so drop me a line.

California road cameras

2015
20
December

Getting permission to use Caltrans Cameras was a challenge. They divide their state into 12 districts. District 1 is in the NW, district 2 is in the NE, 3 and 4 are the next two down, ect. I contacted district 2 as it is the one closest to me. I both Emailed and called. They had no idea what to do with me and pointed me to a nice guy from district 1. He had no idea if Caltrans had any developer tools or not, but I could use what I could find.

I found another private website who is using Caltrans cameras and talked with their webmaster, he was hot linking anything he liked and had not bother contacting Caltrans. At this point I was starting to think he had a good idea there.

ODOT and Washington Department of Transportation have nice pages with lots of info for web developers. If backwards Oregon had one I knew Caltrans had to have one. If not they had to have the same tools and info to make their fancy map work. With that in mind I went hunting through the code to see how the map worked. In doing so I stumbled across some stuff referencing District 13. Some how tracking that down I found someone who pointed me to another person who pointed me in the right direction to their developer page which was down that day, but would be up shortly. I have yet to see it actually up and working, but I did find the resources I was looking for and now you can see Caltrans cameras.

I have only put up district 1,2 and 3. If there is any demand for the rest I am happy to add them on request. I am still waiting for the developer page to work so that I can log in and see what other fun info I can access. I am hoping for a feed talking about wrecks. Maybe a weather station feed as well.

By the way if district 13 sounds familiar, there are a few more similarities. It is darn near impossible to find. It is the district that does the tech stuff for the state.