Author Topic: Growing Degree Days  (Read 3416 times)

0 Members and 1 Guest are viewing this topic.

Offline lrosenman

  • Contributor
  • ***
  • Posts: 148
    • Siena Weather
Re: Growing Degree Days
« Reply #25 on: May 03, 2016, 04:27:17 PM »
Yeah, no windows box.  There was nothing better than Windows CE?

ENOCLUE -- I was surprised at that too.  Was expecting Linux :)


Offline ryanprel

  • Member
  • *
  • Posts: 13
Re: Growing Degree Days
« Reply #26 on: May 03, 2016, 05:08:32 PM »
Any pointers on where to change the database settings and what changes to make for MySQL?

Offline lrosenman

  • Contributor
  • ***
  • Posts: 148
    • Siena Weather
Re: Growing Degree Days
« Reply #27 on: May 03, 2016, 05:21:02 PM »
Any pointers on where to change the database settings and what changes to make for MySQL?

I don't think Brian (weatherist34) has released the code with the DB stuff in it, but yeah, it's basically change the pg_connect, pg_query, etc to the equivalent MySQL, plus the Schema might need some tweaks.


Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Growing Degree Days
« Reply #28 on: May 03, 2016, 07:15:05 PM »
As far as I know there is no version for MySQL for Brian's templates, it used to use WU, but maybe he updated it.

Offline lrosenman

  • Contributor
  • ***
  • Posts: 148
    • Siena Weather
Re: Growing Degree Days
« Reply #29 on: May 03, 2016, 07:18:31 PM »
As far as I know there is no version for MySQL for Brian's templates, it used to use WU, but maybe he updated it.
Brian's scripts use NO database.  I've added PostgreSQL support to the update script, and then built a CWOP script on top of that, and plan
to add WeatherBug in the next few days.   I'm a strong believer in PostgreSQL (been involved with that project for >15 years).

I have NO plans to support MySQL, but I'm using basic stuff.

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Growing Degree Days
« Reply #30 on: May 03, 2016, 07:34:54 PM »
Sure, in terms of  PostGres and MySQL, using it with PHP is very similar. I personally think PostGres is better, the reason I use mySQL in my template is simply because that is what vast majority of webhosting providers offer.

Offline lrosenman

  • Contributor
  • ***
  • Posts: 148
    • Siena Weather
Re: Growing Degree Days
« Reply #31 on: May 03, 2016, 07:36:22 PM »
Since I run my own server at a colo, PostgreSQL is what I have. :)

Offline ryanprel

  • Member
  • *
  • Posts: 13
Re: Growing Degree Days
« Reply #32 on: May 04, 2016, 03:33:45 PM »
I'm just going to install Postgres on my local desktop/server and can then setup everything to run from there easy enough.

Offline lrosenman

  • Contributor
  • ***
  • Posts: 148
    • Siena Weather
Re: Growing Degree Days
« Reply #33 on: May 04, 2016, 03:35:36 PM »
I'm just going to install Postgres on my local desktop/server and can then setup everything to run from there easy enough.

Another convert :)

I'll get stuff posted in the next few days.